@elliemae/pui-cli 7.10.1 → 7.10.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.
@@ -74,12 +74,6 @@ const plugins = [
74
74
  toType: "dir",
75
75
  info: { minimized: true }
76
76
  },
77
- {
78
- from: "node_modules/@elliemae/pui-user-monitoring/dist/umd/*.js",
79
- to: "./latest/js/[name].[contenthash][ext]",
80
- noErrorOnMissing: true,
81
- info: { minimized: true }
82
- },
83
77
  {
84
78
  from: "node_modules/@elliemae/pui-app-loader/dist/public/js",
85
79
  to: "./latest/js",
@@ -87,12 +81,6 @@ const plugins = [
87
81
  noErrorOnMissing: true,
88
82
  info: { minimized: true }
89
83
  },
90
- {
91
- from: "node_modules/@elliemae/pui-app-loader/dist/umd/*.js",
92
- to: "./latest/js/[name].[contenthash][ext]",
93
- noErrorOnMissing: true,
94
- info: { minimized: true }
95
- },
96
84
  {
97
85
  from: "node_modules/@elliemae/encw-loader/dist/public/js",
98
86
  to: "./latest/js",
@@ -100,12 +88,6 @@ const plugins = [
100
88
  noErrorOnMissing: true,
101
89
  info: { minimized: true }
102
90
  },
103
- {
104
- from: "node_modules/@elliemae/encw-loader/dist/umd/*.js",
105
- to: "./latest/js/[name].[contenthash][ext]",
106
- noErrorOnMissing: true,
107
- info: { minimized: true }
108
- },
109
91
  {
110
92
  from: "node_modules/@elliemae/pui-diagnostics/dist/public/js",
111
93
  to: "./latest/js",
@@ -113,12 +95,6 @@ const plugins = [
113
95
  noErrorOnMissing: true,
114
96
  info: { minimized: true }
115
97
  },
116
- {
117
- from: "node_modules/@elliemae/pui-diagnostics/dist/umd/*.js",
118
- to: "./latest/js/[name].[contenthash][ext]",
119
- noErrorOnMissing: true,
120
- info: { minimized: true }
121
- },
122
98
  {
123
99
  from: "public",
124
100
  to: "./latest",
@@ -59,7 +59,7 @@ const getHtmlWebpackPlugins = () => {
59
59
  })
60
60
  );
61
61
  };
62
- var webpack_lib_prod_babel_default = (0, import_webpack_lib_base_babel.baseConfig)({
62
+ const prodConfig = {
63
63
  mode: "production",
64
64
  optimization: {
65
65
  moduleIds: "deterministic",
@@ -91,4 +91,13 @@ var webpack_lib_prod_babel_default = (0, import_webpack_lib_base_babel.baseConfi
91
91
  performance: {
92
92
  assetFilter: (assetFilename) => !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename)
93
93
  }
94
- });
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)];
@@ -51,12 +51,6 @@ const plugins = [
51
51
  toType: "dir",
52
52
  info: { minimized: true }
53
53
  },
54
- {
55
- from: "node_modules/@elliemae/pui-user-monitoring/dist/umd/*.js",
56
- to: "./latest/js/[name].[contenthash][ext]",
57
- noErrorOnMissing: true,
58
- info: { minimized: true }
59
- },
60
54
  {
61
55
  from: "node_modules/@elliemae/pui-app-loader/dist/public/js",
62
56
  to: "./latest/js",
@@ -64,12 +58,6 @@ const plugins = [
64
58
  noErrorOnMissing: true,
65
59
  info: { minimized: true }
66
60
  },
67
- {
68
- from: "node_modules/@elliemae/pui-app-loader/dist/umd/*.js",
69
- to: "./latest/js/[name].[contenthash][ext]",
70
- noErrorOnMissing: true,
71
- info: { minimized: true }
72
- },
73
61
  {
74
62
  from: "node_modules/@elliemae/encw-loader/dist/public/js",
75
63
  to: "./latest/js",
@@ -77,12 +65,6 @@ const plugins = [
77
65
  noErrorOnMissing: true,
78
66
  info: { minimized: true }
79
67
  },
80
- {
81
- from: "node_modules/@elliemae/encw-loader/dist/umd/*.js",
82
- to: "./latest/js/[name].[contenthash][ext]",
83
- noErrorOnMissing: true,
84
- info: { minimized: true }
85
- },
86
68
  {
87
69
  from: "node_modules/@elliemae/pui-diagnostics/dist/public/js",
88
70
  to: "./latest/js",
@@ -90,12 +72,6 @@ const plugins = [
90
72
  noErrorOnMissing: true,
91
73
  info: { minimized: true }
92
74
  },
93
- {
94
- from: "node_modules/@elliemae/pui-diagnostics/dist/umd/*.js",
95
- to: "./latest/js/[name].[contenthash][ext]",
96
- noErrorOnMissing: true,
97
- info: { minimized: true }
98
- },
99
75
  {
100
76
  from: "public",
101
77
  to: "./latest",
@@ -5,7 +5,11 @@ 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 { getLibraryVariableName, getCompressionPlugins } from "./helpers.js";
8
+ import {
9
+ getLibraryVariableName,
10
+ getCompressionPlugins,
11
+ getLibraryName
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")]);
@@ -30,7 +34,7 @@ const getHtmlWebpackPlugins = () => {
30
34
  })
31
35
  );
32
36
  };
33
- var webpack_lib_prod_babel_default = baseConfig({
37
+ const prodConfig = {
34
38
  mode: "production",
35
39
  optimization: {
36
40
  moduleIds: "deterministic",
@@ -62,7 +66,16 @@ var webpack_lib_prod_babel_default = baseConfig({
62
66
  performance: {
63
67
  assetFilter: (assetFilename) => !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename)
64
68
  }
65
- });
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)];
66
79
  export {
67
80
  webpack_lib_prod_babel_default as default
68
81
  };
@@ -98,5 +98,5 @@ declare const _default: {
98
98
  devtool: any;
99
99
  performance: any;
100
100
  devServer: any;
101
- };
101
+ }[];
102
102
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "7.10.1",
3
+ "version": "7.10.2",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",