@tuya-sat/micro-script 3.0.3 → 3.0.4
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.
|
@@ -20,6 +20,7 @@ const copy_webpack_plugin_1 = __importDefault(require("copy-webpack-plugin"));
|
|
|
20
20
|
const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
|
21
21
|
const html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
|
|
22
22
|
const css_minimizer_webpack_plugin_1 = __importDefault(require("css-minimizer-webpack-plugin"));
|
|
23
|
+
const webpack_manifest_plugin_1 = require("webpack-manifest-plugin");
|
|
23
24
|
const micro_dev_loader_1 = require("@tuya-sat/micro-dev-loader");
|
|
24
25
|
const path_1 = __importDefault(require("path"));
|
|
25
26
|
const index_1 = require("@tuya-sat/micro-dev-loader/dist/less/utils/index");
|
|
@@ -67,7 +68,7 @@ function getCommonConfig({ isDev, isBuild, }) {
|
|
|
67
68
|
].filter(Boolean);
|
|
68
69
|
return loaders;
|
|
69
70
|
};
|
|
70
|
-
const { multiApps, debuggerConfig: { isMainApp } } = require(paths_1.default.microConfig);
|
|
71
|
+
const { multiApps, debuggerConfig: { isMainApp }, } = require(paths_1.default.microConfig);
|
|
71
72
|
const multiAppsWebpackConfig = {
|
|
72
73
|
plugins: [],
|
|
73
74
|
entry: {},
|
|
@@ -188,7 +189,7 @@ function getCommonConfig({ isDev, isBuild, }) {
|
|
|
188
189
|
isMainApp && {
|
|
189
190
|
from: `${paths_1.default.node_modules}/@tuya-sat/sdf-main-sdk/dist/**/*.png`,
|
|
190
191
|
to() {
|
|
191
|
-
return
|
|
192
|
+
return 'static/img/[name][ext]';
|
|
192
193
|
},
|
|
193
194
|
},
|
|
194
195
|
].filter((value) => Boolean(value)),
|
|
@@ -199,6 +200,7 @@ function getCommonConfig({ isDev, isBuild, }) {
|
|
|
199
200
|
chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
|
|
200
201
|
}),
|
|
201
202
|
isBuild && enableThemeCompile && new micro_dev_loader_1.ThemePlugin(),
|
|
203
|
+
isMainApp && isBuild && new webpack_manifest_plugin_1.WebpackManifestPlugin({}),
|
|
202
204
|
].filter((value) => Boolean(value)),
|
|
203
205
|
};
|
|
204
206
|
return baseConfig;
|
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.4",
|
|
4
4
|
"bin": "./dist/bin/cli.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@babel/preset-react": "7.16.7",
|
|
21
21
|
"@babel/preset-typescript": "7.16.7",
|
|
22
22
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
23
|
-
"@tuya-sat/micro-dev-loader": "3.0.
|
|
24
|
-
"@tuya-sat/micro-dev-proxy": "3.0.
|
|
25
|
-
"@tuya-sat/micro-utils": "3.0.
|
|
23
|
+
"@tuya-sat/micro-dev-loader": "3.0.4",
|
|
24
|
+
"@tuya-sat/micro-dev-proxy": "3.0.4",
|
|
25
|
+
"@tuya-sat/micro-utils": "3.0.4",
|
|
26
26
|
"@types/kill-port": "^2.0.0",
|
|
27
27
|
"babel-loader": "8.2.4",
|
|
28
28
|
"babel-plugin-import": "1.13.3",
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"jest": "27.5.1",
|
|
72
72
|
"terser-webpack-plugin": "^5.3.6",
|
|
73
73
|
"ts-jest": "27.1.3",
|
|
74
|
-
"typescript": "4.6.2"
|
|
74
|
+
"typescript": "4.6.2",
|
|
75
|
+
"webpack-manifest-plugin": "^5.0.0"
|
|
75
76
|
},
|
|
76
77
|
"keywords": [
|
|
77
78
|
"saturn-project",
|