diff --git a/frontend/scripts/build.js b/frontend/scripts/build.js index 44bbbbe2ce..e6b72650df 100644 --- a/frontend/scripts/build.js +++ b/frontend/scripts/build.js @@ -35,8 +35,6 @@ const useYarn = fs.existsSync(paths.yarnLockFile); const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024; const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024; -const localesPath = 'src/assets/locales'; -const localesBuildPath = paths.appBuild + '/locales'; // Warn and crash if required files are missing if (!checkRequiredFiles([paths.appIndexJs])) { process.exit(1); @@ -50,7 +48,7 @@ measureFileSizesBeforeBuild(paths.appBuild) // if you're in it, you don't end up in Trash fs.emptyDirSync(paths.appBuild); // Merge with the public folder - copyPublicFolder(); + //copyPublicFolder(); // Start the webpack build return build(previousFileSizes); }) @@ -143,10 +141,3 @@ function build(previousFileSizes) { }); }); } - -function copyPublicFolder() { - fs.copySync(localesPath, localesBuildPath, { - dereference: true, - filter: file => file !== paths.appHtml, - }); -}