Revert "chore: optimize CSS imports and PurgeCSS config"
This reverts commit 035da04bf8
.
This commit is contained in:
parent
2de9892040
commit
58c376da3c
2 changed files with 4 additions and 6 deletions
|
@ -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';
|
||||
|
|
|
@ -25,15 +25,13 @@ 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']
|
||||
})
|
||||
]
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue