use*_*856 6 autoprefixer postcss parceljs
Autoprefixer 不适用于包裹 1.9.7:我有我的 src 文件夹,我有 .postcssrc 文件和样式文件在 .postcssrc 文件内的同一文件夹内容中: { "plugins": { "autoprefixer": true } }
包裹与npm install -g parcel-bundler
pacckage json dev depenndacies一起安装:
"devDependencies": {
"autoprefixer": "^9.1.3",
"node-sass": "^4.9.3",
"postcss-modules": "^1.3.2"
},
Run Code Online (Sandbox Code Playgroud)
也许有人知道可能是什么问题?
小智 1
有点晚了,但也许对其他人有帮助。唯一有效的就是把
"postcss": {
"plugins": {
"autoprefixer": {}
}
Run Code Online (Sandbox Code Playgroud)
直接在package.json中
所以,package.json 看起来像这样:
{
"name": "parcel",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"dev": "parcel src/index.html",
"prod": "parcel build src/index.html"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"abstracts": "^0.2.3",
"postcss-modules": "^1.4.1"
},
"devDependencies": {
"autoprefixer": "^9.7.1",
"sass": "^1.23.3"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"description": ""
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1199 次 |
| 最近记录: |