diff --git a/package.json b/package.json index e170125..9eef1c4 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "semver": "^7.1.3", "serialize-javascript": "^5.0.0", "source-map-loader": "^4.0.0", - "speed-measure-webpack-plugin": "^1.5.0", "stream-browserify": "^3.0.0", "style-loader": "^3.3.0", "tapable": "^1.0.0", diff --git a/webpack.config.cli.prod.js b/webpack.config.cli.prod.js index c33f553..ef1b3b3 100644 --- a/webpack.config.cli.prod.js +++ b/webpack.config.cli.prod.js @@ -4,7 +4,6 @@ const webpack = require('webpack'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const { EsbuildPlugin } = require('esbuild-loader'); -const SpeedMeasurePlugin = require('speed-measure-webpack-plugin'); const buildBaseConfig = require('./webpack.config.base'); const cli = require('./webpack.config.cli'); @@ -27,7 +26,6 @@ const buildConfig = (stripesConfig) => { const transpiledModules = getTranspiledModules(allModulePaths); const transpiledModulesRegex = new RegExp(transpiledModules.join('|')); - const smp = new SpeedMeasurePlugin(); prodConfig.plugins = prodConfig.plugins.concat([ new webpack.ProvidePlugin({ @@ -61,12 +59,11 @@ const buildConfig = (stripesConfig) => { prodConfig.module.rules.push(esbuildLoaderRule(allModulePaths)); - const webpackConfig = smp.wrap({ plugins: prodConfig.plugins }); - webpackConfig.plugins.push( + prodConfig.plugins.push( new MiniCssExtractPlugin({ filename: 'style.[contenthash].css' }) ); - return { ...prodConfig, ...webpackConfig }; + return prodConfig; }; module.exports = buildConfig;