mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06: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",
|
||||
"test": "jest",
|
||||
"bundle": "webpack",
|
||||
"bundle:prod": "webpack -p -env.prod",
|
||||
"bundle:prod": "webpack -p --env.prod",
|
||||
"prettier": "prettier --write \"src/**/*.{ts,tsx}\""
|
||||
},
|
||||
"author": "",
|
||||
|
|
|
@ -81,11 +81,12 @@ module.exports = env => {
|
|||
template: './demo/index.html',
|
||||
}),
|
||||
new webpack.NamedModulesPlugin(),
|
||||
new DashboardPlugin(),
|
||||
],
|
||||
};
|
||||
if (env.prod) {
|
||||
config.plugins.push(new webpack.optimize.ModuleConcatenationPlugin());
|
||||
} else {
|
||||
config.plugins.push(new DashboardPlugin());
|
||||
}
|
||||
return config;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user