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:
@@ -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,
|
||||
});
|
||||
|
Reference in New Issue
Block a user