File tree 3 files changed +542
-24
lines changed
3 files changed +542
-24
lines changed Original file line number Diff line number Diff line change 7
7
module . exports = function createClientConfig ( ctx ) {
8
8
const { env } = require ( '@vuepress/shared-utils' )
9
9
const createBaseConfig = require ( './createBaseConfig' )
10
+ const safeParser = require ( 'postcss-safe-parser' )
10
11
11
12
const config = createBaseConfig ( ctx )
12
13
@@ -49,7 +50,7 @@ module.exports = function createClientConfig (ctx) {
49
50
. use ( require ( 'optimize-css-assets-webpack-plugin' ) , [ {
50
51
canPrint : false ,
51
52
cssProcessorOptions : {
52
- safe : true ,
53
+ parser : safeParser ,
53
54
autoprefixer : { disable : true } ,
54
55
mergeLonghand : false
55
56
}
Original file line number Diff line number Diff line change 48
48
"js-yaml" : " ^3.11.0" ,
49
49
"lru-cache" : " ^5.1.1" ,
50
50
"mini-css-extract-plugin" : " 0.4.4" ,
51
- "optimize-css-assets-webpack-plugin" : " ^4 .0.0 " ,
51
+ "optimize-css-assets-webpack-plugin" : " ^5 .0.1 " ,
52
52
"portfinder" : " ^1.0.13" ,
53
53
"postcss-loader" : " ^2.1.5" ,
54
+ "postcss-safe-parser" : " ^4.0.1" ,
54
55
"toml" : " ^2.3.3" ,
55
56
"url-loader" : " ^1.0.1" ,
56
57
"vue" : " ^2.5.16" ,
You can’t perform that action at this time.
0 commit comments