fix(cli): postcss loader option changed

This commit is contained in:
chenjiahan
2020-11-21 22:20:16 +08:00
parent a46ba22943
commit 7e7484a5cb
5 changed files with 100 additions and 1025 deletions

View File

@@ -33,8 +33,6 @@
"vue": "^3.0.0"
},
"devDependencies": {
"@types/jest": "^26.0.15",
"@types/webpack-dev-server": "^3.11.1",
"@types/fs-extra": "^9.0.4",
"@types/lodash": "^4.14.165",
"@types/postcss-load-config": "^2.0.1"
@@ -46,6 +44,8 @@
"@babel/preset-env": "^7.12.7",
"@babel/preset-typescript": "^7.12.7",
"@nuxt/friendly-errors-webpack-plugin": "^2.5.0",
"@types/jest": "^26.0.15",
"@types/webpack-dev-server": "^3.11.1",
"@vant/eslint-config": "^3.0.0",
"@vant/markdown-loader": "^3.0.1",
"@vant/markdown-vetur": "^2.0.2",

View File

@@ -19,9 +19,7 @@ const CSS_LOADERS = [
{
loader: 'postcss-loader',
options: {
config: {
path: POSTCSS_CONFIG_FILE,
},
postcssOptions: require(POSTCSS_CONFIG_FILE),
},
},
];