@elliemae/pui-cli 8.53.0 → 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 +19 -1
- package/dist/esm/webpack/helpers.js +2 -0
- package/dist/esm/webpack/webpack.base.babel.js +21 -2
- package/dist/types/lib/webpack/helpers.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -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,12 +253,30 @@ 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/,
|
|
259
268
|
type: "asset/resource",
|
|
260
269
|
generator: {
|
|
261
|
-
filename: "latest/[name].[
|
|
270
|
+
filename: "latest/[name].[ext]"
|
|
271
|
+
},
|
|
272
|
+
exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
test: /plugin_sandbox.html$/i,
|
|
276
|
+
resourceQuery: /resource/,
|
|
277
|
+
type: "asset/resource",
|
|
278
|
+
generator: {
|
|
279
|
+
filename: "latest/assets/[name].[ext]"
|
|
262
280
|
},
|
|
263
281
|
exclude: (0, import_helpers.excludeNodeModulesExcept)(import_helpers.modulesToTranspile)
|
|
264
282
|
},
|
|
@@ -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,12 +227,30 @@ 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/,
|
|
232
242
|
type: "asset/resource",
|
|
233
243
|
generator: {
|
|
234
|
-
filename: "latest/[name].[
|
|
244
|
+
filename: "latest/[name].[ext]"
|
|
245
|
+
},
|
|
246
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile)
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
test: /plugin_sandbox.html$/i,
|
|
250
|
+
resourceQuery: /resource/,
|
|
251
|
+
type: "asset/resource",
|
|
252
|
+
generator: {
|
|
253
|
+
filename: "latest/assets/[name].[ext]"
|
|
235
254
|
},
|
|
236
255
|
exclude: excludeNodeModulesExcept(modulesToTranspile)
|
|
237
256
|
},
|
|
@@ -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[];
|