1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

Upgrade webpack 2 (#4748)

* update webpack to version 4

* repair build bug

* update package code

* optimize package script

* update seafile-editor version

* repair code bug
This commit is contained in:
杨顺强
2020-12-15 18:00:39 +08:00
committed by GitHub
parent 030fa283cb
commit 873c49d30e
27 changed files with 17673 additions and 8069 deletions

View File

@@ -1,9 +1,13 @@
'use strict';
// https://github.com/webpack/webpack-dev-server/blob/master/examples/api/simple/server.js
process.env.NODE_ENV = 'development';
process.env.BABEL_ENV = 'development';
var Webpack = require('webpack')
var WebpackDevServer = require('webpack-dev-server')
var config = require('./webpack.config.dev')
var configFactory = require('./webpack.config')
var config = configFactory('development');
const compiler = Webpack(config);
const devServerOptions = Object.assign({}, config.devServer, {