@tuya-sat/micro-script 2.0.0 → 2.1.2

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.
@@ -18,6 +18,7 @@ const copy_webpack_plugin_1 = __importDefault(require("copy-webpack-plugin"));
18
18
  const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
19
19
  const html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
20
20
  const css_minimizer_webpack_plugin_1 = __importDefault(require("css-minimizer-webpack-plugin"));
21
+ const micro_dev_loader_1 = require("@tuya-sat/micro-dev-loader");
21
22
  const paths_1 = __importDefault(require("./paths"));
22
23
  function getCommonConfig({ isDev, isBuild, }) {
23
24
  const { name: packageName } = require(paths_1.default.appPkg);
@@ -104,6 +105,12 @@ function getCommonConfig({ isDev, isBuild, }) {
104
105
  runtimeChunk: "single",
105
106
  splitChunks: {
106
107
  cacheGroups: {
108
+ // vendorCss: {
109
+ // test: /(\/node_modules\/[\s\S]+(.less|.css)$)|(\/src\/styles\/global.less)/,
110
+ // name: "light",
111
+ // chunks: "all",
112
+ // priority: 2,
113
+ // },
107
114
  vendor: {
108
115
  test: /[\\/]node_modules[\\/]/,
109
116
  name: "vendors-others",
@@ -139,6 +146,7 @@ function getCommonConfig({ isDev, isBuild, }) {
139
146
  filename: "static/css/[name].[contenthash:8].css",
140
147
  chunkFilename: "static/css/[name].[contenthash:8].chunk.css",
141
148
  }),
149
+ isBuild && false && new micro_dev_loader_1.ThemePlugin(),
142
150
  ].filter((value) => Boolean(value)),
143
151
  };
144
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-sat/micro-script",
3
- "version": "2.0.0",
3
+ "version": "2.1.2",
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": "2.0.0",
24
- "@tuya-sat/micro-dev-proxy": "2.0.0",
25
- "@tuya-sat/micro-utils": "2.0.0",
23
+ "@tuya-sat/micro-dev-loader": "2.1.2",
24
+ "@tuya-sat/micro-dev-proxy": "2.1.2",
25
+ "@tuya-sat/micro-utils": "2.1.2",
26
26
  "babel-loader": "8.2.4",
27
27
  "babel-plugin-import": "1.13.3",
28
28
  "chalk": "4.1.2",