@elliemae/pui-cli 9.0.0-next.11 → 9.0.0-next.12
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.
|
@@ -48,7 +48,8 @@ const getHtmlWebpackPlugins = () => {
|
|
|
48
48
|
template: htmlTemplateFile,
|
|
49
49
|
filename: import_node_path.default.basename(htmlTemplateFile),
|
|
50
50
|
inject: "head",
|
|
51
|
-
scriptLoading: "defer"
|
|
51
|
+
scriptLoading: "defer",
|
|
52
|
+
library: (0, import_helpers.getLibraryVariableName)()
|
|
52
53
|
})
|
|
53
54
|
);
|
|
54
55
|
};
|
|
@@ -48,6 +48,7 @@ const getHtmlWebpackPlugins = () => {
|
|
|
48
48
|
filename: import_node_path.default.basename(htmlTemplateFile),
|
|
49
49
|
inject: "head",
|
|
50
50
|
scriptLoading: "defer",
|
|
51
|
+
library: (0, import_helpers.getLibraryVariableName)(),
|
|
51
52
|
minify: {
|
|
52
53
|
removeComments: true,
|
|
53
54
|
collapseWhitespace: true,
|
|
@@ -5,7 +5,7 @@ import fg from "fast-glob";
|
|
|
5
5
|
import CircularDependencyPlugin from "circular-dependency-plugin";
|
|
6
6
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
7
7
|
import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
8
|
-
import { getPaths } from "./helpers.js";
|
|
8
|
+
import { getPaths, getLibraryVariableName } from "./helpers.js";
|
|
9
9
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
10
10
|
const { basePath } = getPaths();
|
|
11
11
|
const getHtmlWebpackPlugins = () => {
|
|
@@ -15,7 +15,8 @@ const getHtmlWebpackPlugins = () => {
|
|
|
15
15
|
template: htmlTemplateFile,
|
|
16
16
|
filename: path.basename(htmlTemplateFile),
|
|
17
17
|
inject: "head",
|
|
18
|
-
scriptLoading: "defer"
|
|
18
|
+
scriptLoading: "defer",
|
|
19
|
+
library: getLibraryVariableName()
|
|
19
20
|
})
|
|
20
21
|
);
|
|
21
22
|
};
|
|
@@ -5,7 +5,11 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
|
5
5
|
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
|
|
6
6
|
import { EsbuildPlugin } from "esbuild-loader";
|
|
7
7
|
import browserslistToEsbuild from "browserslist-to-esbuild";
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
getCompressionPlugins,
|
|
10
|
+
getLibraryName,
|
|
11
|
+
getLibraryVariableName
|
|
12
|
+
} from "./helpers.js";
|
|
9
13
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
10
14
|
const getHtmlWebpackPlugins = () => {
|
|
11
15
|
const htmlTemplateFiles = fg.sync([path.join(process.cwd(), "lib/*.html")]);
|
|
@@ -15,6 +19,7 @@ const getHtmlWebpackPlugins = () => {
|
|
|
15
19
|
filename: path.basename(htmlTemplateFile),
|
|
16
20
|
inject: "head",
|
|
17
21
|
scriptLoading: "defer",
|
|
22
|
+
library: getLibraryVariableName(),
|
|
18
23
|
minify: {
|
|
19
24
|
removeComments: true,
|
|
20
25
|
collapseWhitespace: true,
|