@elliemae/pui-cli 8.54.6 → 8.54.8

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.
@@ -39,6 +39,7 @@ __export(helpers_exports, {
39
39
  getLibraryVariableName: () => getLibraryVariableName,
40
40
  getMediaPath: () => getMediaPath,
41
41
  getPaths: () => getPaths,
42
+ htmlFilesToExclude: () => htmlFilesToExclude,
42
43
  isAppLoaderEnabled: () => isAppLoaderEnabled,
43
44
  isGoogleTagManagerEnabled: () => isGoogleTagManagerEnabled,
44
45
  mainFields: () => mainFields,
@@ -249,3 +250,4 @@ const resolveExtensions = [
249
250
  ".json"
250
251
  ];
251
252
  const mainFields = ["browser", "module", "main"];
253
+ const htmlFilesToExclude = [/i?frame\.html$/i, /plugin_sandbox\.html$/i];
@@ -255,12 +255,30 @@ const baseConfig = (options) => ({
255
255
  exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile),
256
256
  type: "asset"
257
257
  },
258
+ {
259
+ test: /\.html$/i,
260
+ resourceQuery: /resource/,
261
+ type: "asset/resource",
262
+ generator: {
263
+ filename: "latest/[name][ext]"
264
+ },
265
+ exclude: import_helpers.htmlFilesToExclude
266
+ },
258
267
  {
259
268
  test: /i?frame.html$/i,
260
269
  resourceQuery: /resource/,
261
270
  type: "asset/resource",
262
271
  generator: {
263
- filename: "latest/[name].[ext]"
272
+ filename: "latest/[name][ext]"
273
+ },
274
+ exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
275
+ },
276
+ {
277
+ test: /plugin_sandbox.html$/i,
278
+ resourceQuery: /resource/,
279
+ type: "asset/resource",
280
+ generator: {
281
+ filename: "latest/assets/[name][ext]"
264
282
  },
265
283
  exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
266
284
  },
@@ -200,6 +200,7 @@ const resolveExtensions = [
200
200
  ".json"
201
201
  ];
202
202
  const mainFields = ["browser", "module", "main"];
203
+ const htmlFilesToExclude = [/i?frame\.html$/i, /plugin_sandbox\.html$/i];
203
204
  export {
204
205
  LATEST_VERSION,
205
206
  excludeNodeModulesExcept,
@@ -212,6 +213,7 @@ export {
212
213
  getLibraryVariableName,
213
214
  getMediaPath,
214
215
  getPaths,
216
+ htmlFilesToExclude,
215
217
  isAppLoaderEnabled,
216
218
  isGoogleTagManagerEnabled,
217
219
  mainFields,
@@ -14,7 +14,8 @@ import {
14
14
  modulesToTranspile,
15
15
  getAlias,
16
16
  getPaths,
17
- filterByFilePresence
17
+ filterByFilePresence,
18
+ htmlFilesToExclude
18
19
  } from "./helpers.js";
19
20
  const minicssLoader = {
20
21
  loader: MiniCssExtractPlugin.loader,
@@ -228,12 +229,30 @@ const baseConfig = (options) => ({
228
229
  exclude: excludeNodeModulesExcept(modulesToTranspile),
229
230
  type: "asset"
230
231
  },
232
+ {
233
+ test: /\.html$/i,
234
+ resourceQuery: /resource/,
235
+ type: "asset/resource",
236
+ generator: {
237
+ filename: "latest/[name][ext]"
238
+ },
239
+ exclude: htmlFilesToExclude
240
+ },
231
241
  {
232
242
  test: /i?frame.html$/i,
233
243
  resourceQuery: /resource/,
234
244
  type: "asset/resource",
235
245
  generator: {
236
- filename: "latest/[name].[ext]"
246
+ filename: "latest/[name][ext]"
247
+ },
248
+ exclude: excludeNodeModulesExcept(modulesToTranspile)
249
+ },
250
+ {
251
+ test: /plugin_sandbox.html$/i,
252
+ resourceQuery: /resource/,
253
+ type: "asset/resource",
254
+ generator: {
255
+ filename: "latest/assets/[name][ext]"
237
256
  },
238
257
  exclude: excludeNodeModulesExcept(modulesToTranspile)
239
258
  },
@@ -30,3 +30,4 @@ export declare const getCompressionPlugins: (isLibrary?: boolean) => Compression
30
30
  export declare const filterByFilePresence: (patterns: ObjectPattern[]) => ObjectPattern[];
31
31
  export declare const resolveExtensions: string[];
32
32
  export declare const mainFields: string[];
33
+ export declare const htmlFilesToExclude: RegExp[];