@epilot360/webpack-config-epilot360 2.1.3 → 2.4.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.
|
@@ -8,6 +8,8 @@ const SystemJSPublicPathPlugin = require("systemjs-webpack-interop/SystemJSPubli
|
|
|
8
8
|
const EnvPrefixPlugin = require("webpack-env-prefix-plugin");
|
|
9
9
|
const { ESBuildMinifyPlugin } = require('esbuild-loader')
|
|
10
10
|
|
|
11
|
+
const resolveCwd = require('resolve-cwd');
|
|
12
|
+
|
|
11
13
|
module.exports = webpackConfigEpilot360ReactApp;
|
|
12
14
|
|
|
13
15
|
function webpackConfigEpilot360ReactApp(opts) {
|
|
@@ -52,6 +54,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
52
54
|
uniqueName: opts.projectName,
|
|
53
55
|
devtoolNamespace: `${opts.projectName}`,
|
|
54
56
|
publicPath: "",
|
|
57
|
+
chunkFilename: 'chunk-[name].[chunkhash].js',
|
|
55
58
|
},
|
|
56
59
|
module: {
|
|
57
60
|
rules: [
|
|
@@ -80,6 +83,9 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
80
83
|
modules: false,
|
|
81
84
|
},
|
|
82
85
|
},
|
|
86
|
+
{
|
|
87
|
+
loader: require.resolve("postcss-loader", { paths: [__dirname] }),
|
|
88
|
+
},
|
|
83
89
|
{
|
|
84
90
|
loader: require.resolve('esbuild-loader', { paths: [__dirname] }),
|
|
85
91
|
options: {
|
|
@@ -151,6 +157,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
151
157
|
: new ForkTsCheckerWebpackPlugin({
|
|
152
158
|
typescript: {
|
|
153
159
|
mode: "write-references",
|
|
160
|
+
typescriptPath: resolveCwd('typescript')
|
|
154
161
|
},
|
|
155
162
|
}),
|
|
156
163
|
].filter(Boolean),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot360/webpack-config-epilot360",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "A webpack config for in-browser modules used with single-spa for Epilot360",
|
|
5
5
|
"main": "lib/webpack-config-epilot360-portal.js",
|
|
6
6
|
"directories": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"fork-ts-checker-webpack-plugin": "^6.0.5",
|
|
18
18
|
"html-webpack-plugin": "^5.1.0",
|
|
19
19
|
"https-browserify": "^1.0.0",
|
|
20
|
+
"postcss-loader": "^6.2.1",
|
|
20
21
|
"standalone-single-spa-webpack-plugin": "^1.1.0",
|
|
21
22
|
"style-loader": "^2.0.0",
|
|
22
23
|
"systemjs-webpack-interop": "^2.3.2",
|
|
23
|
-
"typescript": "^4.3.5",
|
|
24
24
|
"unused-files-webpack-plugin": "^3.4.0",
|
|
25
25
|
"webpack": "^5.50.0",
|
|
26
26
|
"webpack-bundle-analyzer": "^4.2.0",
|
|
@@ -31,5 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"acorn-import-assertions": "^1.7.6"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"typescript": "^4.3.5"
|
|
34
37
|
}
|
|
35
38
|
}
|