Skip to content

Commit

Permalink
Минификация elki-palki
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDxYk594 committed Dec 16, 2024
1 parent 8da003b commit d22580d
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 12 deletions.
73 changes: 61 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"mini-css-extract-plugin": "^2.9.1",
"sass": "^1.80.4",
"sass-loader": "^16.0.2",
"terser-webpack-plugin": "^5.3.11",
"typescript-eslint": "^8.11.0",
"webpack": "^5.95.0",
"webpack-dev-server": "^5.1.0"
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const path = require('path');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const lightningcss = require('lightningcss');
const browserslist = require('browserslist');
const TerserPlugin = require("terser-webpack-plugin");
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

module.exports = {
Expand Down Expand Up @@ -62,6 +63,7 @@ module.exports = {
runtimeChunk: 'single',
minimize: true,
minimizer: [
new TerserPlugin(),
new CssMinimizerPlugin({
minify: CssMinimizerPlugin.lightningCssMinify,
minimizerOptions: {
Expand Down

0 comments on commit d22580d

Please sign in to comment.