fix(style-loader): add miniCSSExtractPlugin loader for ssr builds

This commit is contained in:
Pooya Parsa 2018-03-23 19:38:36 +04:30
parent 05652d72c8
commit 96bfc40672

View File

@ -81,7 +81,7 @@ export default class StyleLoader {
}
extract(loaders) {
if (this.extractCSS && !this.isServer) {
if (this.extractCSS) {
loaders.unshift(MiniCssExtractPlugin.loader)
if (this.dev) {
// css-hot-loader