@tuya-sat/micro-script 3.0.0-beta.13 → 3.0.0-beta.14

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.
@@ -191,7 +191,9 @@ function getCommonConfig({ isDev, isBuild, }) {
191
191
  multiAppsWebpackConfig.entry[app.name] = `${path_1.default.join(process.cwd(), app.dir)}/index.tsx`;
192
192
  multiAppsWebpackConfig.plugins.push(new html_webpack_plugin_1.default({
193
193
  inject: true,
194
- filename: `${app.name}.html`,
194
+ filename: app.htmlContentHash
195
+ ? `${app.name}-[contenthash].html`
196
+ : `${app.name}.html`,
195
197
  template: paths_1.default.spaHtml,
196
198
  chunks: [app.name],
197
199
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "3.0.0-beta.13",
3
+ "version": "3.0.0-beta.14",
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.0-beta.13",
24
- "@tuya-sat/micro-dev-proxy": "3.0.0-beta.13",
25
- "@tuya-sat/micro-utils": "3.0.0-beta.13",
23
+ "@tuya-sat/micro-dev-loader": "3.0.0-beta.14",
24
+ "@tuya-sat/micro-dev-proxy": "3.0.0-beta.14",
25
+ "@tuya-sat/micro-utils": "3.0.0-beta.14",
26
26
  "@types/kill-port": "^2.0.0",
27
27
  "babel-loader": "8.2.4",
28
28
  "babel-plugin-import": "1.13.3",