Revert "chore: optimize CSS imports and PurgeCSS config"

This reverts commit 035da04bf8.
This commit is contained in:
Kumi 2024-09-04 08:10:41 +02:00
parent 2de9892040
commit 58c376da3c
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 4 additions and 6 deletions

View file

@ -1,4 +1,4 @@
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import '../css/custom.css';

View file

@ -25,14 +25,12 @@ module.exports = {
},
plugins: [
new MiniCssExtractPlugin({
filename: '../css/[name].css'
filename: '../css/main.css'
}),
new PurgeCSSPlugin({
paths: glob.sync([
path.join(__dirname, 'index.php'),
path.join(__dirname, 'src/js/**/*.js')
path.join(__dirname, 'index.php')
]),
only: ['bootstrap'],
safelist: ['tooltip', 'fade', 'show', 'bs-tooltip-top', 'tooltip-inner', 'tooltip-arrow', 'btn-equals', 'btn-arrow', 'alert', 'alert-warning']
})
]