mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-12-22 13:49:22 +00:00
Revert "feat(build): optimize output with minification and compression"
This reverts commit 83a23fc66e
.
This commit is contained in:
parent
83a23fc66e
commit
2de9892040
3 changed files with 37 additions and 1168 deletions
1174
package-lock.json
generated
1174
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -4,12 +4,10 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"css-loader": "^7.1.2",
|
||||
"css-minimizer-webpack-plugin": "^7.0.0",
|
||||
"glob-all": "^3.3.1",
|
||||
"mini-css-extract-plugin": "^2.9.1",
|
||||
"mini-css-extract-plugin": "^2.9.0",
|
||||
"purgecss": "^6.0.0",
|
||||
"purgecss-webpack-plugin": "^6.0.0",
|
||||
"terser-webpack-plugin": "^5.3.10"
|
||||
"purgecss-webpack-plugin": "^6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@popperjs/core": "^2.11.8",
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
'use strict';
|
||||
'use strict'
|
||||
|
||||
const path = require('path');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const { PurgeCSSPlugin } = require('purgecss-webpack-plugin');
|
||||
const { PurgeCSSPlugin } = require("purgecss-webpack-plugin");
|
||||
const glob = require('glob-all');
|
||||
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
mode: 'development',
|
||||
entry: './src/js/main.js',
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
filename: 'main.js',
|
||||
path: path.resolve(__dirname, 'js'),
|
||||
},
|
||||
module: {
|
||||
|
@ -37,18 +35,5 @@ module.exports = {
|
|||
only: ['bootstrap'],
|
||||
safelist: ['tooltip', 'fade', 'show', 'bs-tooltip-top', 'tooltip-inner', 'tooltip-arrow', 'btn-equals', 'btn-arrow', 'alert', 'alert-warning']
|
||||
})
|
||||
],
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
},
|
||||
},
|
||||
}),
|
||||
new CssMinimizerPlugin(),
|
||||
],
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue