Add PostCSS to build process

I'm not sure why we need this, but the Bootstrap build uses it and
I would like to follow their lead.

See: https://github.com/twbs/bootstrap/blob/v5.0.0-alpha3/package.json
This commit is contained in:
2020-11-30 15:44:06 +02:00
parent af8ffa8046
commit 03072cdc38
3 changed files with 783 additions and 4 deletions

16
build/postcss.config.js Normal file
View File

@ -0,0 +1,16 @@
'use strict'
module.exports = ctx => ({
map: ctx.file.dirname.includes('examples') ?
false :
{
inline: false,
annotation: true,
sourcesContent: true
},
plugins: {
autoprefixer: {
cascade: false
}
}
})