Rewrite copy-res i18n build as a webpack plugin (#32664)

* Replace copy-res with a webpack plugin

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Specify writeToDisk=true for webpack-dev-server

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Use async fs methods

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2026-02-27 13:00:25 +00:00
committed by GitHub
parent 89fb388e57
commit 0a308743b8
6 changed files with 131 additions and 199 deletions
-28
View File
@@ -495,9 +495,6 @@ importers:
'@types/lodash':
specifier: ^4.14.168
version: 4.17.23
'@types/minimist':
specifier: ^1.2.5
version: 1.2.5
'@types/modernizr':
specifier: ^3.5.3
version: 3.5.6
@@ -558,9 +555,6 @@ importers:
blob-polyfill:
specifier: ^9.0.0
version: 9.0.20240710
chokidar:
specifier: ^5.0.0
version: 5.0.0
copy-webpack-plugin:
specifier: ^13.0.0
version: 13.0.1(webpack@5.105.2)
@@ -651,9 +645,6 @@ importers:
mini-css-extract-plugin:
specifier: 2.10.0
version: 2.10.0(webpack@5.105.2)
minimist:
specifier: ^1.2.6
version: 1.2.8
modernizr:
specifier: ^3.12.0
version: 3.13.1
@@ -4267,9 +4258,6 @@ packages:
'@types/mime@1.3.5':
resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==}
'@types/minimist@1.2.5':
resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==}
'@types/modernizr@3.5.6':
resolution: {integrity: sha512-yslwR0zZ3zAT1qXcCPxIcD23CZ6W6nKsl6JufSJHAmdwOBuYwCVJkaMsEo9yzxGV7ATfoX8S+RgtnajOEtKxYA==}
@@ -5455,10 +5443,6 @@ packages:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
chokidar@5.0.0:
resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
engines: {node: '>= 20.19.0'}
chownr@1.1.4:
resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==}
@@ -9256,10 +9240,6 @@ packages:
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
readdirp@5.0.0:
resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}
engines: {node: '>= 20.19.0'}
recast@0.23.11:
resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==}
engines: {node: '>= 4'}
@@ -14506,8 +14486,6 @@ snapshots:
'@types/mime@1.3.5': {}
'@types/minimist@1.2.5': {}
'@types/modernizr@3.5.6': {}
'@types/node@18.19.130':
@@ -15919,10 +15897,6 @@ snapshots:
optionalDependencies:
fsevents: 2.3.3
chokidar@5.0.0:
dependencies:
readdirp: 5.0.0
chownr@1.1.4: {}
chrome-trace-event@1.0.4: {}
@@ -20425,8 +20399,6 @@ snapshots:
dependencies:
picomatch: 2.3.1
readdirp@5.0.0: {}
recast@0.23.11:
dependencies:
ast-types: 0.16.1