Skip to content

Commit

Permalink
chore: upgrade mini-css-extract-plugin and lock version
Browse files Browse the repository at this point in the history
This commit fixed #977 for 0.x.
  • Loading branch information
ulivz committed Nov 13, 2018
1 parent c8f6aeb commit 2dafd88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/@vuepress/core/lib/webpack/createBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ module.exports = function createBaseConfig ({
styles: {
name: 'styles',
// necessary to ensure async chunks are also extracted
test: m => /css-extract/.test(m.type),
test: m => {
return /css\/mini-extract/.test(m.type)
},
chunks: 'all',
enforce: true
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@vuepress/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"koa-range": "^0.3.0",
"koa-static": "^4.0.2",
"lru-cache": "^4.1.2",
"mini-css-extract-plugin": "^0.4.1",
"mini-css-extract-plugin": "0.4.4",
"optimize-css-assets-webpack-plugin": "^4.0.0",
"portfinder": "^1.0.13",
"postcss-loader": "^2.1.5",
Expand Down

0 comments on commit 2dafd88

Please sign in to comment.