@xh/hoist-dev-utils 10.0.0 → 10.1.0
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/configureWebpack.js +4 -1
- package/package.json +11 -11
package/configureWebpack.js
CHANGED
|
@@ -108,6 +108,7 @@ try {
|
|
|
108
108
|
* @param {(boolean|Object)} [env.devHttps] - `true` to run webpack-dev-server locally over SSL w/o providing a cert
|
|
109
109
|
* (browser will warn). Or provide an object that will be passed to `devServer.server.options` to enable SSL and
|
|
110
110
|
* while specifying a custom cert/key. Default `false` runs locally over HTTP only. Dev-mode only.
|
|
111
|
+
* @param {Object} [env.devServerOptions] - options to spread onto / override defaults passed here to the devServer.
|
|
111
112
|
*/
|
|
112
113
|
async function configureWebpack(env) {
|
|
113
114
|
if (!env.appCode) throw 'Missing required "appCode" config - cannot proceed';
|
|
@@ -132,6 +133,7 @@ async function configureWebpack(env) {
|
|
|
132
133
|
devHttps = prodBuild ? null : _.isPlainObject(env.devHttps) ? env.devHttps : !!env.devHttps,
|
|
133
134
|
devGrailsPort = env.devGrailsPort || 8080,
|
|
134
135
|
devWebpackPort = env.devWebpackPort || 3000,
|
|
136
|
+
devServerOptions = env.devServerOptions || {},
|
|
135
137
|
baseUrl = env.baseUrl || (prodBuild ? '/api/' : `//${devHost}:${devGrailsPort}/`),
|
|
136
138
|
babelIncludePaths = env.babelIncludePaths || [],
|
|
137
139
|
babelExcludePaths = env.babelExcludePaths || [],
|
|
@@ -750,7 +752,8 @@ async function configureWebpack(env) {
|
|
|
750
752
|
to: `/${appName}/index.html?_=${Date.now()}`
|
|
751
753
|
};
|
|
752
754
|
})
|
|
753
|
-
}
|
|
755
|
+
},
|
|
756
|
+
...devServerOptions
|
|
754
757
|
}
|
|
755
758
|
};
|
|
756
759
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist-dev-utils",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "Utilities for configuring builds of Hoist-React client applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,40 +15,40 @@
|
|
|
15
15
|
"static/**/*"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/core": "^7.
|
|
19
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
20
|
-
"@babel/preset-env": "^7.
|
|
21
|
-
"@babel/preset-react": "^7.
|
|
22
|
-
"@babel/preset-typescript": "^7.
|
|
18
|
+
"@babel/core": "^7.27.1",
|
|
19
|
+
"@babel/plugin-proposal-decorators": "^7.27.1",
|
|
20
|
+
"@babel/preset-env": "^7.27.1",
|
|
21
|
+
"@babel/preset-react": "^7.27.1",
|
|
22
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
23
23
|
"@cerner/duplicate-package-checker-webpack-plugin": "2.3.0",
|
|
24
24
|
"@types/lodash": "4.x",
|
|
25
25
|
"@types/react": "18.x",
|
|
26
26
|
"@types/react-dom": "18.x",
|
|
27
27
|
"@xh/eslint-config": "^6.0",
|
|
28
28
|
"autoprefixer": "~10.4.18",
|
|
29
|
-
"babel-loader": "~
|
|
29
|
+
"babel-loader": "~10.0.0",
|
|
30
30
|
"babel-plugin-transform-imports": "~2.0.0",
|
|
31
31
|
"case-sensitive-paths-webpack-plugin": "~2.4.0",
|
|
32
32
|
"changelog-parser": "~3.0.1",
|
|
33
|
-
"copy-webpack-plugin": "~
|
|
33
|
+
"copy-webpack-plugin": "~13.0.0",
|
|
34
34
|
"css-loader": "~7.1.2",
|
|
35
35
|
"file-loader": "~6.2.0",
|
|
36
36
|
"html-webpack-plugin": "~5.6.0",
|
|
37
37
|
"html-webpack-tags-plugin": "~3.0.2",
|
|
38
38
|
"lodash": "~4.17.21",
|
|
39
39
|
"mini-css-extract-plugin": "~2.9.0",
|
|
40
|
-
"postcss": "~8.
|
|
40
|
+
"postcss": "~8.5.3",
|
|
41
41
|
"postcss-flexbugs-fixes": "~5.0.2",
|
|
42
42
|
"postcss-loader": "~8.1.1",
|
|
43
43
|
"rimraf": "~6.0.1",
|
|
44
|
-
"sass-embedded": "~1.
|
|
44
|
+
"sass-embedded": "~1.87.0",
|
|
45
45
|
"sass-loader": "~16.0.4",
|
|
46
46
|
"sass-material-colors": "~0.0.5",
|
|
47
47
|
"style-loader": "~4.0.0",
|
|
48
48
|
"terser-webpack-plugin": "~5.3.7",
|
|
49
49
|
"type-fest": "4.x",
|
|
50
50
|
"url-loader": "~4.1.1",
|
|
51
|
-
"webpack": "~5.
|
|
51
|
+
"webpack": "~5.99.7",
|
|
52
52
|
"webpack-bundle-analyzer": "~4.10.1",
|
|
53
53
|
"webpack-cli": "~6.0.1",
|
|
54
54
|
"webpack-dev-server": "~5.2.0",
|