From dc32037b36e734da59553dcc4dd70064e9c8fe8a Mon Sep 17 00:00:00 2001 From: plt Date: Wed, 18 Dec 2019 00:16:01 +0800 Subject: [PATCH] Remove copy of locale folder --- frontend/scripts/build.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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, - }); -}