1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +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

@@ -36,12 +36,11 @@ const entryFiles = {
uploadLink: "/pages/upload-link",
};
const getEntries = (mode) => {
const getEntries = (isEnvDevelopment) => {
let entries = {};
Object.keys(entryFiles).forEach(key => {
let entry = [];
entry.push(require.resolve('./polyfills'));
if (mode === 'development') {
if (isEnvDevelopment) {
entry.push(require.resolve('react-dev-utils/webpackHotDevClient'));
}
entry.push(paths.appSrc + entryFiles[key]);