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