We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
首先webpack.config.js中加载loader
module.exports = { // __dirname是nodejs里的一个全局变量,他指向我们的根目录 //entry入口文件路径 entry: __dirname + '/app/main.js', //出口文件位置 output: { path: __dirname + '/public', //出口文件位置 filename: 'webpack.js' //出口文件名 }, module: { loaders: [ { test: /\.css$/, loader: "style-loader!css-loader!postcss-loader" } ] } }
我们在webpack.config.js的同级目录下新建postcss.config.js文件,配置如下
module.exports = { plugins: [ require('autoprefixer') ] }
接下来我们再来运行webpack就可以了。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
通过postcss-loader添加浏览器前缀
首先webpack.config.js中加载loader
我们在webpack.config.js的同级目录下新建postcss.config.js文件,配置如下
接下来我们再来运行webpack就可以了。
The text was updated successfully, but these errors were encountered: