@elliemae/pui-cli 7.10.0 → 7.10.1
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.
|
@@ -59,7 +59,7 @@ const getHtmlWebpackPlugins = () => {
|
|
|
59
59
|
})
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
var webpack_lib_prod_babel_default = (0, import_webpack_lib_base_babel.baseConfig)({
|
|
63
63
|
mode: "production",
|
|
64
64
|
optimization: {
|
|
65
65
|
moduleIds: "deterministic",
|
|
@@ -91,13 +91,4 @@ const prodConfig = {
|
|
|
91
91
|
performance: {
|
|
92
92
|
assetFilter: (assetFilename) => !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename)
|
|
93
93
|
}
|
|
94
|
-
};
|
|
95
|
-
const prodConfigWithHash = { ...prodConfig };
|
|
96
|
-
const libraryName = (0, import_helpers.getLibraryName)();
|
|
97
|
-
prodConfigWithHash.output = {
|
|
98
|
-
path: import_node_path.default.resolve(process.cwd(), "dist/public"),
|
|
99
|
-
filename: `js/${libraryName}.[chunkhash].js`,
|
|
100
|
-
chunkFilename: `js/${libraryName}.[chunkhash].chunk.js`,
|
|
101
|
-
assetModuleFilename: "assets/[name].[hash][ext][query]"
|
|
102
|
-
};
|
|
103
|
-
var webpack_lib_prod_babel_default = [(0, import_webpack_lib_base_babel.baseConfig)(prodConfig), (0, import_webpack_lib_base_babel.baseConfig)(prodConfigWithHash)];
|
|
94
|
+
});
|
|
@@ -5,11 +5,7 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
|
5
5
|
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
|
|
6
6
|
import { ESBuildMinifyPlugin } from "esbuild-loader";
|
|
7
7
|
import browserslistToEsbuild from "browserslist-to-esbuild";
|
|
8
|
-
import {
|
|
9
|
-
getLibraryVariableName,
|
|
10
|
-
getCompressionPlugins,
|
|
11
|
-
getLibraryName
|
|
12
|
-
} from "./helpers.js";
|
|
8
|
+
import { getLibraryVariableName, getCompressionPlugins } from "./helpers.js";
|
|
13
9
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
14
10
|
const getHtmlWebpackPlugins = () => {
|
|
15
11
|
const htmlTemplateFiles = fg.sync([path.join(process.cwd(), "lib/*.html")]);
|
|
@@ -34,7 +30,7 @@ const getHtmlWebpackPlugins = () => {
|
|
|
34
30
|
})
|
|
35
31
|
);
|
|
36
32
|
};
|
|
37
|
-
|
|
33
|
+
var webpack_lib_prod_babel_default = baseConfig({
|
|
38
34
|
mode: "production",
|
|
39
35
|
optimization: {
|
|
40
36
|
moduleIds: "deterministic",
|
|
@@ -66,16 +62,7 @@ const prodConfig = {
|
|
|
66
62
|
performance: {
|
|
67
63
|
assetFilter: (assetFilename) => !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename)
|
|
68
64
|
}
|
|
69
|
-
};
|
|
70
|
-
const prodConfigWithHash = { ...prodConfig };
|
|
71
|
-
const libraryName = getLibraryName();
|
|
72
|
-
prodConfigWithHash.output = {
|
|
73
|
-
path: path.resolve(process.cwd(), "dist/public"),
|
|
74
|
-
filename: `js/${libraryName}.[chunkhash].js`,
|
|
75
|
-
chunkFilename: `js/${libraryName}.[chunkhash].chunk.js`,
|
|
76
|
-
assetModuleFilename: "assets/[name].[hash][ext][query]"
|
|
77
|
-
};
|
|
78
|
-
var webpack_lib_prod_babel_default = [baseConfig(prodConfig), baseConfig(prodConfigWithHash)];
|
|
65
|
+
});
|
|
79
66
|
export {
|
|
80
67
|
webpack_lib_prod_babel_default as default
|
|
81
68
|
};
|