@quicktvui/web-cli 1.0.0-beta.31 → 1.0.0-beta.32

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.
@@ -66,9 +66,8 @@ import(__QUICKTVUI_MAIN_ENTRY__)
66
66
 
67
67
  // HMR 支持
68
68
  if (module.hot) {
69
- module.hot.accept()
70
- module.hot.accept(__QUICKTVUI_MAIN_ENTRY__, () => {
71
- console.log('[Web Renderer] Main module updated, reloading...')
69
+ module.hot.accept(() => {
70
+ console.log('[Web Renderer] HMR update received, reloading...')
72
71
  window.location.reload()
73
72
  })
74
73
  }
@@ -115,6 +115,9 @@ module.exports = {
115
115
  devServer: {
116
116
  port,
117
117
  hot: true,
118
+ devMiddleware: {
119
+ writeToDisk: true,
120
+ },
118
121
  proxy: [
119
122
  {
120
123
  context: ['/proxy'],
@@ -148,8 +151,7 @@ module.exports = {
148
151
  },
149
152
 
150
153
  watchOptions: {
151
- aggregateTimeout: 1500,
152
- poll: 1000,
154
+ aggregateTimeout: 300,
153
155
  ignored: /node_modules/,
154
156
  },
155
157
 
@@ -163,6 +165,7 @@ module.exports = {
163
165
  output: {
164
166
  filename: 'index.bundle.js',
165
167
  path: path.resolve(projectRoot, './dist/web/'),
168
+ publicPath: '/',
166
169
  strictModuleExceptionHandling: true,
167
170
  globalObject: '(0, eval)("this")',
168
171
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/web-cli",
3
- "version": "1.0.0-beta.31",
3
+ "version": "1.0.0-beta.32",
4
4
  "description": "CLI tool for QuickTVUI web development - zero configuration",
5
5
  "author": "QuickTVUI Team",
6
6
  "license": "Apache-2.0",