@tuya-sat/micro-script 3.0.11 → 3.0.12
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.
|
@@ -174,11 +174,14 @@ function getCommonConfig({ isDev, isBuild, }) {
|
|
|
174
174
|
minimizer: ['...', new css_minimizer_webpack_plugin_1.default()],
|
|
175
175
|
},
|
|
176
176
|
plugins: [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
...[
|
|
178
|
+
(htmlplugins === null || htmlplugins === void 0 ? void 0 : htmlplugins.length) > 0
|
|
179
|
+
? htmlplugins
|
|
180
|
+
: new html_webpack_plugin_1.default({
|
|
181
|
+
inject: true,
|
|
182
|
+
template: paths_1.default.spaHtml,
|
|
183
|
+
}),
|
|
184
|
+
],
|
|
182
185
|
new copy_webpack_plugin_1.default({
|
|
183
186
|
patterns: [
|
|
184
187
|
{
|
|
@@ -218,10 +221,12 @@ function getCommonConfig({ isDev, isBuild, }) {
|
|
|
218
221
|
}));
|
|
219
222
|
});
|
|
220
223
|
console.log('multiAppsWebpackConfig', multiAppsWebpackConfig);
|
|
221
|
-
|
|
224
|
+
const appsResult = (0, webpack_merge_1.merge)(getWebpackConfig(multiAppsWebpackConfig.plugins), {
|
|
222
225
|
entry: multiAppsWebpackConfig.entry,
|
|
223
226
|
});
|
|
227
|
+
return appsResult;
|
|
224
228
|
}
|
|
225
|
-
|
|
229
|
+
const result = getWebpackConfig([]);
|
|
230
|
+
return result;
|
|
226
231
|
}
|
|
227
232
|
exports.default = getCommonConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-script",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"bin": "./dist/bin/cli.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@babel/preset-typescript": "7.16.7",
|
|
24
24
|
"@babel/traverse": "^7.20.13",
|
|
25
25
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
26
|
-
"@tuya-sat/micro-dev-loader": "3.0.
|
|
27
|
-
"@tuya-sat/micro-dev-proxy": "3.0.
|
|
28
|
-
"@tuya-sat/micro-utils": "3.0.
|
|
26
|
+
"@tuya-sat/micro-dev-loader": "3.0.12",
|
|
27
|
+
"@tuya-sat/micro-dev-proxy": "3.0.12",
|
|
28
|
+
"@tuya-sat/micro-utils": "3.0.12",
|
|
29
29
|
"@types/kill-port": "^2.0.0",
|
|
30
30
|
"babel-loader": "8.2.4",
|
|
31
31
|
"babel-plugin-import": "1.13.3",
|