1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

Remove copy of locale folder

This commit is contained in:
plt 2019-12-18 00:16:01 +08:00
parent f79cec7fa6
commit dc32037b36

View File

@ -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,
});
}