mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-19 07:27:56 +00:00
Remove copy of locale folder
This commit is contained in:
parent
f79cec7fa6
commit
dc32037b36
@ -35,8 +35,6 @@ const useYarn = fs.existsSync(paths.yarnLockFile);
|
|||||||
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
||||||
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 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
|
// Warn and crash if required files are missing
|
||||||
if (!checkRequiredFiles([paths.appIndexJs])) {
|
if (!checkRequiredFiles([paths.appIndexJs])) {
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
@ -50,7 +48,7 @@ measureFileSizesBeforeBuild(paths.appBuild)
|
|||||||
// if you're in it, you don't end up in Trash
|
// if you're in it, you don't end up in Trash
|
||||||
fs.emptyDirSync(paths.appBuild);
|
fs.emptyDirSync(paths.appBuild);
|
||||||
// Merge with the public folder
|
// Merge with the public folder
|
||||||
copyPublicFolder();
|
//copyPublicFolder();
|
||||||
// Start the webpack build
|
// Start the webpack build
|
||||||
return build(previousFileSizes);
|
return build(previousFileSizes);
|
||||||
})
|
})
|
||||||
@ -143,10 +141,3 @@ function build(previousFileSizes) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyPublicFolder() {
|
|
||||||
fs.copySync(localesPath, localesBuildPath, {
|
|
||||||
dereference: true,
|
|
||||||
filter: file => file !== paths.appHtml,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user