@configuratorware/configurator-admingui 1.32.1-beta.0 → 1.32.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-admingui",
|
|
3
|
-
"version": "1.32.1
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"monaco-editor-webpack-plugin": "^1.9.1",
|
|
20
20
|
"prop-types": "^15.7.2",
|
|
21
21
|
"qs": "^6.10.1",
|
|
22
|
-
"react": "^
|
|
23
|
-
"react-dom": "^
|
|
22
|
+
"react": "^16.14.0",
|
|
23
|
+
"react-dom": "^16.14.0",
|
|
24
24
|
"react-file-drop": "^0.2.8",
|
|
25
25
|
"react-hot-loader": "^4.13.0",
|
|
26
26
|
"react-i18nify": "^1.11.18",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-redux-i18n": "^1.9.3",
|
|
30
30
|
"react-router": "^3.2.6",
|
|
31
31
|
"react-sortable-hoc": "^1.11.0",
|
|
32
|
-
"redhotmagma-visualization": "1.32.1
|
|
32
|
+
"redhotmagma-visualization": "1.32.1",
|
|
33
33
|
"redux": "^4.1.0",
|
|
34
34
|
"redux-logger": "^3.0.6",
|
|
35
35
|
"redux-persist": "^5.10.0",
|
|
@@ -60,5 +60,6 @@
|
|
|
60
60
|
"scripts": {
|
|
61
61
|
"copy-public": "node ./scripts/cpFavicon.js",
|
|
62
62
|
"install": "npm run copy-public"
|
|
63
|
-
}
|
|
63
|
+
},
|
|
64
|
+
"readme": "# configurator-admingui\n\n## Setup for development\n1. Follow the \"preparation\", \"install\" and \"start development\" steps in frontend/README.md\n1. Open the core app in the browser: http://localhost:3000\n\n## Ready to build the artifacts\n- run `pnpm build` from project scope (does not build workspace dependencies automatically)\n- or run `pnpm build` from workspace root\n"
|
|
64
65
|
}
|
|
@@ -23,19 +23,11 @@ const moduleRules = [
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
test: /\.(png|jpg|gif|svg)$/,
|
|
26
|
-
loader: 'url-loader',
|
|
27
|
-
options: {
|
|
28
|
-
limit: 16384,
|
|
29
|
-
name: 'images/[name].[hash].[ext]',
|
|
30
|
-
},
|
|
26
|
+
loader: 'url-loader?limit=16384&name=images/[name].[hash].[ext]',
|
|
31
27
|
},
|
|
32
28
|
{
|
|
33
29
|
test: /\.ttf$/,
|
|
34
|
-
loader: 'url-loader',
|
|
35
|
-
options: {
|
|
36
|
-
limit: 16384,
|
|
37
|
-
name: 'fonts/[name].[hash].[ext]',
|
|
38
|
-
},
|
|
30
|
+
loader: 'url-loader?limit=16384&name=fonts/[name].[hash].[ext]',
|
|
39
31
|
},
|
|
40
32
|
];
|
|
41
33
|
|
|
@@ -73,7 +65,7 @@ function getDevConfig(dirname, options = {}) {
|
|
|
73
65
|
filename: 'bundle.js',
|
|
74
66
|
publicPath: '/',
|
|
75
67
|
},
|
|
76
|
-
devtool: '
|
|
68
|
+
devtool: 'cheap-module-eval-source-map',
|
|
77
69
|
devServer: {
|
|
78
70
|
hot: true,
|
|
79
71
|
contentBase: BUILD_DIR,
|
|
@@ -112,10 +104,7 @@ function getDevConfig(dirname, options = {}) {
|
|
|
112
104
|
'react/lib/ExecutionEnvironment': true,
|
|
113
105
|
'react/lib/ReactContext': true,
|
|
114
106
|
},
|
|
115
|
-
|
|
116
|
-
moduleIds: 'named',
|
|
117
|
-
},
|
|
118
|
-
plugins: [new webpack.HotModuleReplacementPlugin(), monaco],
|
|
107
|
+
plugins: [new webpack.HotModuleReplacementPlugin(), new webpack.NamedModulesPlugin(), monaco],
|
|
119
108
|
};
|
|
120
109
|
}
|
|
121
110
|
|
|
@@ -123,17 +112,17 @@ function importPluginsForBuild() {
|
|
|
123
112
|
try {
|
|
124
113
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
125
114
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
126
|
-
const
|
|
115
|
+
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
|
127
116
|
return {
|
|
128
117
|
TerserPlugin,
|
|
129
118
|
MiniCssExtractPlugin,
|
|
130
|
-
|
|
119
|
+
OptimizeCSSAssetsPlugin,
|
|
131
120
|
};
|
|
132
121
|
} catch (e) {
|
|
133
122
|
const packages = [
|
|
134
123
|
'terser-webpack-plugin',
|
|
135
124
|
'mini-css-extract-plugin',
|
|
136
|
-
'css-
|
|
125
|
+
'optimize-css-assets-webpack-plugin',
|
|
137
126
|
];
|
|
138
127
|
console.error(
|
|
139
128
|
'To use the build script, please install the following packages: ' + packages.join(', ')
|
|
@@ -146,14 +135,14 @@ function getProdConfig(dirname) {
|
|
|
146
135
|
const BUILD_DIR = path.resolve(dirname, 'public');
|
|
147
136
|
const APP_DIR = path.resolve(dirname, 'src');
|
|
148
137
|
|
|
149
|
-
const { TerserPlugin, MiniCssExtractPlugin,
|
|
138
|
+
const { TerserPlugin, MiniCssExtractPlugin, OptimizeCSSAssetsPlugin } = importPluginsForBuild();
|
|
150
139
|
|
|
151
140
|
const extractSass = new MiniCssExtractPlugin({
|
|
152
141
|
filename: 'bundle.css',
|
|
153
142
|
chunkFilename: 'bundle.[name].css',
|
|
154
143
|
});
|
|
155
144
|
|
|
156
|
-
const optimizeCss = new
|
|
145
|
+
const optimizeCss = new OptimizeCSSAssetsPlugin({});
|
|
157
146
|
|
|
158
147
|
const minimizer = new TerserPlugin({
|
|
159
148
|
extractComments: true,
|
|
@@ -199,9 +188,9 @@ function getProdConfig(dirname) {
|
|
|
199
188
|
],
|
|
200
189
|
noParse: moduleNoParse,
|
|
201
190
|
},
|
|
202
|
-
plugins: [env, extractSass, monaco],
|
|
191
|
+
plugins: [env, extractSass, optimizeCss, monaco],
|
|
203
192
|
optimization: {
|
|
204
|
-
minimizer: [minimizer
|
|
193
|
+
minimizer: [minimizer],
|
|
205
194
|
},
|
|
206
195
|
};
|
|
207
196
|
}
|