We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
给 CSS 自动加前缀,增加各浏览器的兼容性
module.exports = { plugins: [ // 需要使用的插件列表 require('postcss-cssnext') ] }
虽然使用 PostCSS 后文件后缀还是 .css 但这些文件必须先交给 postcss-loader 处理一遍后再交给 css-loader。
module.exports = { module: { rules: [ { // 使用 PostCSS 处理 CSS 文件 test: /\.css$/, use: ['style-loader', 'css-loader', 'postcss-loader'], }, ] }, };
# 安装 Webpack Loader 依赖 npm i -D postcss-loader css-loader style-loader # 根据你使用的特性安装对应的 PostCSS 插件依赖 npm i -D postcss-cssnext
The text was updated successfully, but these errors were encountered:
No branches or pull requests
给 CSS 自动加前缀,增加各浏览器的兼容性
接入 Webpack
虽然使用 PostCSS 后文件后缀还是 .css 但这些文件必须先交给 postcss-loader 处理一遍后再交给 css-loader。
The text was updated successfully, but these errors were encountered: