标签:defaults hub webp efault class default export stc ios 7
npm i webpck webpack-cli style-loader postcss-loader -D
webpack.config.js
module: {
rules: [{
test: /\.css/i,
use: ['style-loader', 'postcss-loader']
}]
}
postcss.config.js
module.exports = {
plugins: [
require('autoprefixer')
]
}
到这一步运行发现没有效果??,https://github.com/browserslist/browserslist#readme, 配置一手
package.json
"browserslist": [
"defaults",
"not ie < 11",
"last 2 versions",
"> 1%",
"iOS 7",
"last 3 iOS versions"
]
success!??
标签:defaults hub webp efault class default export stc ios 7
原文地址:https://www.cnblogs.com/guangzan/p/11264390.html