@elliemae/pui-cli 8.54.6 → 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.
- package/dist/cjs/webpack/helpers.js +2 -0
- package/dist/cjs/webpack/webpack.base.babel.js +18 -0
- package/dist/esm/webpack/helpers.js +2 -0
- package/dist/esm/webpack/webpack.base.babel.js +20 -1
- package/dist/types/lib/webpack/helpers.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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,6 +255,15 @@ 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/,
|
|
@@ -264,6 +273,15 @@ const baseConfig = (options) => ({
|
|
|
264
273
|
},
|
|
265
274
|
exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
|
|
266
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
|
+
},
|
|
267
285
|
{
|
|
268
286
|
resourceQuery: /resource/,
|
|
269
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,
|
|
@@ -228,6 +229,15 @@ 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/,
|
|
@@ -237,6 +247,15 @@ const baseConfig = (options) => ({
|
|
|
237
247
|
},
|
|
238
248
|
exclude: excludeNodeModulesExcept(modulesToTranspile)
|
|
239
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
|
+
},
|
|
240
259
|
{
|
|
241
260
|
resourceQuery: /resource/,
|
|
242
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[];
|