@elliemae/pui-cli 5.22.1 → 5.22.2
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.
package/lib/webpack/helpers.js
CHANGED
|
@@ -187,16 +187,17 @@ const isGoogleTagManagerEnabled = () => {
|
|
|
187
187
|
return !!appConfig?.googleTagManager;
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
-
const getCompressionPlugins = () => {
|
|
190
|
+
const getCompressionPlugins = (isLibrary = false) => {
|
|
191
|
+
const excludeList = [
|
|
192
|
+
/\/adrum-ext/,
|
|
193
|
+
/\/emuiUserMonitoring/,
|
|
194
|
+
/\/emuiDiagnostics/,
|
|
195
|
+
/\/emuiAppLoader/,
|
|
196
|
+
/\/encwLoader/,
|
|
197
|
+
];
|
|
191
198
|
const commonConfig = {
|
|
192
199
|
test: /\.(js|css)$/,
|
|
193
|
-
exclude: [
|
|
194
|
-
/\/adrum-ext/,
|
|
195
|
-
/\/emuiUserMonitoring/,
|
|
196
|
-
/\/emuiDiagnostics/,
|
|
197
|
-
/\/emuiAppLoader/,
|
|
198
|
-
/\/encwLoader/,
|
|
199
|
-
],
|
|
200
|
+
exclude: !isLibrary ? excludeList : [],
|
|
200
201
|
// we are compressing all files since in aws cloudfront edge lambda, we don't want to whitelist files that are not compressed due to below limits
|
|
201
202
|
minRatio: Number.MAX_SAFE_INTEGER,
|
|
202
203
|
};
|