Although I followed the excellent directions provided by the Boostrap 4 documentation, I found it incomplete. Here are the missing steps:
# install dependencies
npm i jquery popper.js [email protected] --save
# install dev-dependencies
npm i precss --save-dev
# use the following webpack postcss-loader config
{
loader: 'postcss-loader', // Run post css actions
options: {
sourceMap: true, // if other loaders generate sourceMap file(s)
plugins: function () { // post css plugins, can be exported to postcss.config.js
return [
require('precss'),
require('autoprefixer')
];
}
}
}