1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[frontend] fix npm build (#2240)

This commit is contained in:
C_Q
2018-07-27 17:13:43 +08:00
committed by zheng xie
parent 77b8c1f148
commit e71b411f00
3 changed files with 3 additions and 160 deletions

View File

@@ -35,6 +35,8 @@ const useYarn = fs.existsSync(paths.yarnLockFile);
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
const localesPath = paths.appNodeModules + '/@seafile/seafile-editor/public/locales';
const localesBuildPath = paths.appBuild + '/locales';
// Warn and crash if required files are missing
if (!checkRequiredFiles([paths.appIndexJs])) {
process.exit(1);
@@ -143,7 +145,7 @@ function build(previousFileSizes) {
}
function copyPublicFolder() {
fs.copySync(paths.appPublic, paths.appBuild, {
fs.copySync(localesPath, localesBuildPath, {
dereference: true,
filter: file => file !== paths.appHtml,
});