@epilot360/webpack-config-epilot360 2.0.0 → 2.1.3
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.
|
@@ -81,7 +81,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
loader: 'esbuild-loader',
|
|
84
|
+
loader: require.resolve('esbuild-loader', { paths: [__dirname] }),
|
|
85
85
|
options: {
|
|
86
86
|
loader: 'css',
|
|
87
87
|
minify: true
|
|
@@ -91,7 +91,14 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
test: /\.(bmp|png|svg|jpg|jpeg|gif|webp)$/i,
|
|
94
|
-
exclude: [
|
|
94
|
+
exclude: [
|
|
95
|
+
/node_modules/,
|
|
96
|
+
/src\/assets\/ckeditor/,
|
|
97
|
+
/src\/assets\/dashboard/,
|
|
98
|
+
],
|
|
99
|
+
include: [
|
|
100
|
+
/node_modules\/jsoneditor\/dist\/img/,
|
|
101
|
+
],
|
|
95
102
|
type: "asset/resource",
|
|
96
103
|
},
|
|
97
104
|
{
|
|
@@ -99,6 +106,10 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
99
106
|
exclude: /node_modules/,
|
|
100
107
|
type: "asset/source",
|
|
101
108
|
},
|
|
109
|
+
{
|
|
110
|
+
test: /\.svg$/i,
|
|
111
|
+
loader: require.resolve('file-loader', { paths: [__dirname] }),
|
|
112
|
+
},
|
|
102
113
|
],
|
|
103
114
|
},
|
|
104
115
|
optimization: {
|
|
@@ -157,6 +168,7 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
157
168
|
"react-dom",
|
|
158
169
|
"axios",
|
|
159
170
|
"lodash",
|
|
171
|
+
"js-yaml",
|
|
160
172
|
"@epilot/base-elements",
|
|
161
173
|
"@epilot/base-modules",
|
|
162
174
|
new RegExp(`^@epilot360/`), // all @epilot360/* packages will be treated as external
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot360/webpack-config-epilot360",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.3",
|
|
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": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"scripts": {},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"css-loader": "^5.0.1",
|
|
15
|
-
"esbuild-loader": "^2.
|
|
15
|
+
"esbuild-loader": "^2.18.0",
|
|
16
|
+
"file-loader": "^6.2.0",
|
|
16
17
|
"fork-ts-checker-webpack-plugin": "^6.0.5",
|
|
17
18
|
"html-webpack-plugin": "^5.1.0",
|
|
18
19
|
"https-browserify": "^1.0.0",
|