1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

Update webpack.md

potcss-loader now uses the `postcssOptions` key. https://www.npmjs.com/package/postcss-loader
This commit is contained in:
Matthew Orahood
2020-09-16 06:01:31 -04:00
committed by XhmikosR
parent b5fb84a91d
commit 26c1fbe839

View File

@@ -55,12 +55,14 @@ For Bootstrap to compile, make sure you install and use the required loaders: [s
}, { }, {
loader: 'postcss-loader', // Run postcss actions loader: 'postcss-loader', // Run postcss actions
options: { options: {
postcssOptions: {
plugins: function () { // post css plugins, can be exported to postcss.config.js plugins: function () { // post css plugins, can be exported to postcss.config.js
return [ return [
require('autoprefixer') require('autoprefixer')
]; ];
} }
} }
}
}, { }, {
loader: 'sass-loader' // compiles Sass to CSS loader: 'sass-loader' // compiles Sass to CSS
}] }]