mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 20:01:10 +00:00
update build script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
// Do this as the first thing so that any code reading it knows the right env.
|
||||
process.env.BABEL_ENV = 'production';
|
||||
@@ -138,6 +138,9 @@ checkBrowsers(paths.appPath, isInteractive)
|
||||
function build(previousFileSizes) {
|
||||
console.log('Creating an optimized production build...');
|
||||
|
||||
const { publicPath, ...rest } = config.output;
|
||||
config.output = rest;
|
||||
|
||||
const compiler = webpack(config);
|
||||
return new Promise((resolve, reject) => {
|
||||
compiler.run((err, stats) => {
|
||||
|
Reference in New Issue
Block a user