@elliemae/pui-cli 6.0.0-beta.26 → 6.0.0-beta.27
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
|
@@ -185,16 +185,17 @@ const isGoogleTagManagerEnabled = () => {
|
|
|
185
185
|
return !!appConfig?.googleTagManager;
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
const getCompressionPlugins = () => {
|
|
188
|
+
const getCompressionPlugins = (isLibrary = false) => {
|
|
189
|
+
const excludeList = [
|
|
190
|
+
/\/adrum-ext/,
|
|
191
|
+
/\/emuiUserMonitoring/,
|
|
192
|
+
/\/emuiDiagnostics/,
|
|
193
|
+
/\/emuiAppLoader/,
|
|
194
|
+
/\/encwLoader/,
|
|
195
|
+
];
|
|
189
196
|
const commonConfig = {
|
|
190
197
|
test: /\.(js|css)$/,
|
|
191
|
-
exclude: [
|
|
192
|
-
/\/adrum-ext/,
|
|
193
|
-
/\/emuiUserMonitoring/,
|
|
194
|
-
/\/emuiDiagnostics/,
|
|
195
|
-
/\/emuiAppLoader/,
|
|
196
|
-
/\/encwLoader/,
|
|
197
|
-
],
|
|
198
|
+
exclude: !isLibrary ? excludeList : [],
|
|
198
199
|
// 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
|
|
199
200
|
minRatio: Number.MAX_SAFE_INTEGER,
|
|
200
201
|
};
|