@elliemae/pui-cli 8.54.5 → 8.54.7

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];
@@ -53,7 +53,8 @@ const { buildPath } = (0, import_helpers.getPaths)();
53
53
  const plugins = [
54
54
  new import_webpack.default.EnvironmentPlugin({
55
55
  NODE_ENV: "development",
56
- CI: "false"
56
+ CI: "false",
57
+ APP_VERSION: process?.env?.APP_VERSION ?? ""
57
58
  }),
58
59
  new import_dotenv_webpack.default(),
59
60
  new import_webpack.default.ProvidePlugin({
@@ -254,6 +255,15 @@ const baseConfig = (options) => ({
254
255
  exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile),
255
256
  type: "asset"
256
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
+ },
257
267
  {
258
268
  test: /i?frame.html$/i,
259
269
  resourceQuery: /resource/,
@@ -263,6 +273,15 @@ const baseConfig = (options) => ({
263
273
  },
264
274
  exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
265
275
  },
276
+ {
277
+ test: /plugin_sandbox.html$/i,
278
+ resourceQuery: /resource/,
279
+ type: "asset/resource",
280
+ generator: {
281
+ filename: "latest/assets/[name].[ext]"
282
+ },
283
+ exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
284
+ },
266
285
  {
267
286
  resourceQuery: /resource/,
268
287
  type: "asset/resource",
@@ -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,
@@ -26,7 +27,8 @@ const { buildPath } = getPaths();
26
27
  const plugins = [
27
28
  new webpack.EnvironmentPlugin({
28
29
  NODE_ENV: "development",
29
- CI: "false"
30
+ CI: "false",
31
+ APP_VERSION: process?.env?.APP_VERSION ?? ""
30
32
  }),
31
33
  new DotEnvWebpack(),
32
34
  new webpack.ProvidePlugin({
@@ -227,6 +229,15 @@ const baseConfig = (options) => ({
227
229
  exclude: excludeNodeModulesExcept(modulesToTranspile),
228
230
  type: "asset"
229
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
+ },
230
241
  {
231
242
  test: /i?frame.html$/i,
232
243
  resourceQuery: /resource/,
@@ -236,6 +247,15 @@ const baseConfig = (options) => ({
236
247
  },
237
248
  exclude: excludeNodeModulesExcept(modulesToTranspile)
238
249
  },
250
+ {
251
+ test: /plugin_sandbox.html$/i,
252
+ resourceQuery: /resource/,
253
+ type: "asset/resource",
254
+ generator: {
255
+ filename: "latest/assets/[name].[ext]"
256
+ },
257
+ exclude: excludeNodeModulesExcept(modulesToTranspile)
258
+ },
239
259
  {
240
260
  resourceQuery: /resource/,
241
261
  type: "asset/resource",
@@ -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[];