I am trying to setup bootstrap using web pack, but it's not giving the auto prefixed version of CSS when I run the build.
In custom.scss I have added my customizations and then imported bootstrap from my node modules.
This is my webpack.config.js
module.exports = {
entry: {
scss: ['./src/scss/custom.scss']
},
module: {
rules: [
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [{
loader: 'css-loader',
options: {
minimize: false,
autoprefixer: true,
sourceMap: true,
importLoaders: 1
}
}, 'postcss-loader', 'sass-loader']
})
}
]
},
plugins: [
new ExtractTextPlugin({
filename: './assets/css/style.css',
disable: false,
allChunks: true
}),
]
}
this is my postcsss.config.js
module.exports = {
plugins: function () {
return [
require('precss'),
require('autoprefixer')
];
}
}
When I build, all the bootstrap css is getting added to style.css but it's not giving the auto prefixed css file. Vendor prefix is a must because it's BS4 so flex is there.
Thanks.