@elliemae/pui-cli 5.25.3 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,7 @@ const TerserPlugin = require('terser-webpack-plugin');
|
|
|
6
6
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
7
7
|
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
|
8
8
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
|
9
|
+
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
|
|
9
10
|
|
|
10
11
|
const baseConfigFactory = require('./webpack.base.babel');
|
|
11
12
|
const {
|
|
@@ -149,6 +150,22 @@ const appVersionConfig = baseConfigFactory(
|
|
|
149
150
|
getProdConfig({ latestVersion: false }),
|
|
150
151
|
);
|
|
151
152
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
const addSMPPlugin = (config) => {
|
|
154
|
+
const smpConfig = new SpeedMeasurePlugin({
|
|
155
|
+
disable: !process.env.MEASURE,
|
|
156
|
+
}).wrap(config);
|
|
157
|
+
// mini css extract plugin is not working fine with smp
|
|
158
|
+
smpConfig.plugins.push(
|
|
159
|
+
new MiniCssExtractPlugin({
|
|
160
|
+
filename: 'css/[name].[contenthash].css',
|
|
161
|
+
chunkFilename: 'css/[name].[contenthash].chunk.css',
|
|
162
|
+
}),
|
|
163
|
+
);
|
|
164
|
+
return smpConfig;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
const config = isVersionedApp
|
|
168
|
+
? [latestVersionConfig, appVersionConfig].map(addSMPPlugin)
|
|
169
|
+
: addSMPPlugin(latestVersionConfig);
|
|
170
|
+
|
|
171
|
+
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.26.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "EllieMae Platform UI CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
"css-minimizer-webpack-plugin": "~3.3.1",
|
|
130
130
|
"depcheck": "~1.4.3",
|
|
131
131
|
"docdash": "~1.2.0",
|
|
132
|
-
"dotenv": "~
|
|
132
|
+
"dotenv": "~12.0.4",
|
|
133
133
|
"dotenv-webpack": "~7.0.3",
|
|
134
134
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
135
135
|
"enhanced-resolve": "~5.8.3",
|
|
136
|
-
"eslint": "~8.
|
|
136
|
+
"eslint": "~8.7.0",
|
|
137
137
|
"eslint-config-airbnb": "~18.2.1",
|
|
138
138
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
139
139
|
"eslint-config-airbnb-typescript": "~15.0.0",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"eslint-plugin-compat": "~3.13.0",
|
|
146
146
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
147
147
|
"eslint-plugin-import": "~2.25.4",
|
|
148
|
-
"eslint-plugin-jest": "~25.
|
|
148
|
+
"eslint-plugin-jest": "~25.7.0",
|
|
149
149
|
"eslint-plugin-jsdoc": "~37.6.1",
|
|
150
150
|
"eslint-plugin-jsx-a11y": "~6.5.1",
|
|
151
151
|
"eslint-plugin-mdx": "~1.16.0",
|
|
@@ -213,6 +213,7 @@
|
|
|
213
213
|
"semantic-release": "~18.0.1",
|
|
214
214
|
"shelljs": "~0.8.5",
|
|
215
215
|
"slackify-markdown": "~4.3.1",
|
|
216
|
+
"speed-measure-webpack-plugin": "~1.5.0",
|
|
216
217
|
"storybook-react-router": "~1.0.8",
|
|
217
218
|
"style-loader": "~3.3.1",
|
|
218
219
|
"stylelint": "~14.2.0",
|