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 'bootstrap/dist/js/bootstrap.bundle.min';
|
||||||
|
|
||||||
import '../css/custom.css';
|
import '../css/custom.css';
|
||||||
|
|
|
@ -25,14 +25,12 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: '../css/[name].css'
|
filename: '../css/main.css'
|
||||||
}),
|
}),
|
||||||
new PurgeCSSPlugin({
|
new PurgeCSSPlugin({
|
||||||
paths: glob.sync([
|
paths: glob.sync([
|
||||||
path.join(__dirname, 'index.php'),
|
path.join(__dirname, 'index.php')
|
||||||
path.join(__dirname, 'src/js/**/*.js')
|
|
||||||
]),
|
]),
|
||||||
only: ['bootstrap'],
|
|
||||||
safelist: ['tooltip', 'fade', 'show', 'bs-tooltip-top', 'tooltip-inner', 'tooltip-arrow', 'btn-equals', 'btn-arrow', 'alert', 'alert-warning']
|
safelist: ['tooltip', 'fade', 'show', 'bs-tooltip-top', 'tooltip-inner', 'tooltip-arrow', 'btn-equals', 'btn-arrow', 'alert', 'alert-warning']
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue