diff options
author | Guillermo Ramos | 2023-11-04 11:52:01 +0100 |
---|---|---|
committer | Guillermo Ramos | 2023-11-04 11:52:01 +0100 |
commit | 13e34af4b700127507298a489f25ad8c2fae6a42 (patch) | |
tree | a5a02bc6939a3dd41ea9b1c0b833534ab994b88d /assets/webpack.config.js | |
parent | a7f60df110052d2d84da2a375fe5dc2cf672066d (diff) | |
download | waev-13e34af4b700127507298a489f25ad8c2fae6a42.tar.gz |
ITV pasada
Diffstat (limited to 'assets/webpack.config.js')
-rw-r--r-- | assets/webpack.config.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/webpack.config.js b/assets/webpack.config.js index d2c2669..a1a54df 100644 --- a/assets/webpack.config.js +++ b/assets/webpack.config.js @@ -2,13 +2,13 @@ const path = require('path'); const glob = require('glob'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); -const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); +const OptimizeCSSAssetsPlugin = require('css-minimizer-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = (env, options) => ({ optimization: { minimizer: [ - new TerserPlugin({ cache: true, parallel: true, sourceMap: false }), + new TerserPlugin({ parallel: true }), new OptimizeCSSAssetsPlugin({}) ] }, @@ -40,6 +40,6 @@ module.exports = (env, options) => ({ }, plugins: [ new MiniCssExtractPlugin({ filename: '../css/app.css' }), - new CopyWebpackPlugin([{ from: 'static/', to: '../' }]) + new CopyWebpackPlugin({ patterns: [{from: 'static/', to: '../' }] }) ] }); |