diff --git a/CHANGELOG.md b/CHANGELOG.md index 847b2b9..a800546 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Add postcss-plugin for relative color syntax support for Firefox. Refs STRWEB-103. * Lock `favicons` to `7.1.4` due to build failures. Refs STRWEB-105. * Update `typescript` from `^4.2.4` to `^5.3.3`. Refs STRWEB-104. +* Resolve issue with favicon referencing by removing `speed-measurer-webpack-plugin` and its wrapping of other webpack plugins. Refs STRWEB-108. ## [5.0.0](https://github.com/folio-org/stripes-webpack/tree/v5.0.0) (2023-10-11) [Full Changelog](https://github.com/folio-org/stripes-webpack/compare/v4.2.0...v5.0.0) 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;