@quicktvui/web-cli 1.0.0-beta.20 → 1.0.0-beta.21

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.
@@ -100,9 +100,8 @@ function detectCSSLoader() {
100
100
 
101
101
  const cssLoader = detectCSSLoader()
102
102
 
103
- // 入口文件:只加载 entry-package.js,主入口通过动态 import 加载
103
+ // 入口文件
104
104
  const entryPackageFile = path.resolve(__dirname, 'entry-package.js')
105
- const entryFiles = ['regenerator-runtime/runtime', entryPackageFile]
106
105
 
107
106
  module.exports = {
108
107
  mode: 'development',
@@ -144,16 +143,15 @@ module.exports = {
144
143
  },
145
144
 
146
145
  watchOptions: {
147
- aggregateTimeout: 1500,
148
- poll: 1000,
146
+ aggregateTimeout: 300,
149
147
  ignored: /node_modules/,
150
148
  },
151
149
 
152
- devtool: 'source-map',
150
+ devtool: 'eval-cheap-module-source-map',
153
151
 
154
- // 多入口配置:先加载初始化代码,再加载主入口
152
+ // 入口配置:支持 HMR
155
153
  entry: {
156
- index: entryFiles,
154
+ index: ['regenerator-runtime/runtime', entryPackageFile],
157
155
  },
158
156
 
159
157
  output: {
@@ -194,7 +192,10 @@ module.exports = {
194
192
  use: [
195
193
  {
196
194
  loader: 'vue-loader',
197
- options: { compilerOptions: { whitespace: 'condense' } },
195
+ options: {
196
+ compilerOptions: { whitespace: 'condense' },
197
+ hotReload: true,
198
+ },
198
199
  },
199
200
  'scope-loader',
200
201
  ],
@@ -274,6 +275,6 @@ module.exports = {
274
275
 
275
276
  performance: { hints: false },
276
277
 
277
- // 忽略 entry-local.js 中动态 require 的警告(这是预期行为)
278
+ // 忽略动态 require 的警告
278
279
  ignoreWarnings: [/Critical dependency: the request of a dependency is an expression/],
279
280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/web-cli",
3
- "version": "1.0.0-beta.20",
3
+ "version": "1.0.0-beta.21",
4
4
  "description": "CLI tool for QuickTVUI web development - zero configuration",
5
5
  "author": "QuickTVUI Team",
6
6
  "license": "Apache-2.0",