Use PostCSS for bundling

This commit is contained in:
kbe
2025-08-20 00:07:58 +02:00
parent 880af9bb7d
commit 2f98e9f3fc
13 changed files with 13134 additions and 10192 deletions

23
postcss.config.js Normal file
View File

@@ -0,0 +1,23 @@
module.exports = {
plugins: [
require('postcss-import')({
path: ['static/assets/css', 'static/assets/plugins', 'assets/css/scss']
}),
require('postcss-url')({
url: 'inline',
maxSize: 100,
fallback: 'copy'
}),
require('autoprefixer')({
overrideBrowserslist: ['> 1%', 'last 2 versions', 'IE >= 11']
}),
require('cssnano')({
preset: ['default', {
discardComments: { removeAll: true },
normalizeWhitespace: true,
colormin: true,
zindex: false
}]
})
]
}