1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

update build script

This commit is contained in:
小强
2025-07-03 16:08:52 +08:00
parent 936eaa1673
commit 11546de375

View File

@@ -1,4 +1,4 @@
'use strict';
// Do this as the first thing so that any code reading it knows the right env. // Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production'; process.env.BABEL_ENV = 'production';
@@ -138,6 +138,9 @@ checkBrowsers(paths.appPath, isInteractive)
function build(previousFileSizes) { function build(previousFileSizes) {
console.log('Creating an optimized production build...'); console.log('Creating an optimized production build...');
const { publicPath, ...rest } = config.output;
config.output = rest;
const compiler = webpack(config); const compiler = webpack(config);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
compiler.run((err, stats) => { compiler.run((err, stats) => {