@elliemae/pui-cli 8.53.1 → 8.53.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/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];
|
|
@@ -253,6 +253,15 @@ const baseConfig = (options) => ({
|
|
|
253
253
|
exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile),
|
|
254
254
|
type: "asset"
|
|
255
255
|
},
|
|
256
|
+
{
|
|
257
|
+
test: /.html$/i,
|
|
258
|
+
resourceQuery: /resource/,
|
|
259
|
+
type: "asset/resource",
|
|
260
|
+
generator: {
|
|
261
|
+
filename: "latest/[name].[ext]"
|
|
262
|
+
},
|
|
263
|
+
exclude: import_helpers.htmlFilesToExclude
|
|
264
|
+
},
|
|
256
265
|
{
|
|
257
266
|
test: /i?frame.html$/i,
|
|
258
267
|
resourceQuery: /resource/,
|
|
@@ -262,6 +271,15 @@ const baseConfig = (options) => ({
|
|
|
262
271
|
},
|
|
263
272
|
exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
|
|
264
273
|
},
|
|
274
|
+
{
|
|
275
|
+
test: /plugin_sandbox.html$/i,
|
|
276
|
+
resourceQuery: /resource/,
|
|
277
|
+
type: "asset/resource",
|
|
278
|
+
generator: {
|
|
279
|
+
filename: "latest/assets/[name].[ext]"
|
|
280
|
+
},
|
|
281
|
+
exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
|
|
282
|
+
},
|
|
265
283
|
{
|
|
266
284
|
resourceQuery: /resource/,
|
|
267
285
|
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,
|
|
@@ -226,6 +227,15 @@ const baseConfig = (options) => ({
|
|
|
226
227
|
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
227
228
|
type: "asset"
|
|
228
229
|
},
|
|
230
|
+
{
|
|
231
|
+
test: /.html$/i,
|
|
232
|
+
resourceQuery: /resource/,
|
|
233
|
+
type: "asset/resource",
|
|
234
|
+
generator: {
|
|
235
|
+
filename: "latest/[name].[ext]"
|
|
236
|
+
},
|
|
237
|
+
exclude: htmlFilesToExclude
|
|
238
|
+
},
|
|
229
239
|
{
|
|
230
240
|
test: /i?frame.html$/i,
|
|
231
241
|
resourceQuery: /resource/,
|
|
@@ -235,6 +245,15 @@ const baseConfig = (options) => ({
|
|
|
235
245
|
},
|
|
236
246
|
exclude: excludeNodeModulesExcept(modulesToTranspile)
|
|
237
247
|
},
|
|
248
|
+
{
|
|
249
|
+
test: /plugin_sandbox.html$/i,
|
|
250
|
+
resourceQuery: /resource/,
|
|
251
|
+
type: "asset/resource",
|
|
252
|
+
generator: {
|
|
253
|
+
filename: "latest/assets/[name].[ext]"
|
|
254
|
+
},
|
|
255
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile)
|
|
256
|
+
},
|
|
238
257
|
{
|
|
239
258
|
resourceQuery: /resource/,
|
|
240
259
|
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[];
|