mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-13 04:16:34 +03:00
fix bundle hanging
This commit is contained in:
parent
109d135959
commit
9bc44fd1ae
|
@ -11,7 +11,7 @@
|
||||||
"dev": "webpack-dashboard -- webpack-dev-server --hot",
|
"dev": "webpack-dashboard -- webpack-dev-server --hot",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"bundle": "webpack",
|
"bundle": "webpack",
|
||||||
"bundle:prod": "webpack -p -env.prod",
|
"bundle:prod": "webpack -p --env.prod",
|
||||||
"prettier": "prettier --write \"src/**/*.{ts,tsx}\""
|
"prettier": "prettier --write \"src/**/*.{ts,tsx}\""
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -81,11 +81,12 @@ module.exports = env => {
|
||||||
template: './demo/index.html',
|
template: './demo/index.html',
|
||||||
}),
|
}),
|
||||||
new webpack.NamedModulesPlugin(),
|
new webpack.NamedModulesPlugin(),
|
||||||
new DashboardPlugin(),
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
if (env.prod) {
|
if (env.prod) {
|
||||||
config.plugins.push(new webpack.optimize.ModuleConcatenationPlugin());
|
config.plugins.push(new webpack.optimize.ModuleConcatenationPlugin());
|
||||||
|
} else {
|
||||||
|
config.plugins.push(new DashboardPlugin());
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user