@quicktvui/web-cli 1.0.0-beta.30 → 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,7 +115,9 @@ module.exports = {
115
115
  devServer: {
116
116
  port,
117
117
  hot: true,
118
- liveReload: true,
118
+ devMiddleware: {
119
+ writeToDisk: true,
120
+ },
119
121
  proxy: [
120
122
  {
121
123
  context: ['/proxy'],
@@ -149,8 +151,7 @@ module.exports = {
149
151
  },
150
152
 
151
153
  watchOptions: {
152
- aggregateTimeout: 1500,
153
- poll: 1000,
154
+ aggregateTimeout: 300,
154
155
  ignored: /node_modules/,
155
156
  },
156
157
 
@@ -164,6 +165,7 @@ module.exports = {
164
165
  output: {
165
166
  filename: 'index.bundle.js',
166
167
  path: path.resolve(projectRoot, './dist/web/'),
168
+ publicPath: '/',
167
169
  strictModuleExceptionHandling: true,
168
170
  globalObject: '(0, eval)("this")',
169
171
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/web-cli",
3
- "version": "1.0.0-beta.30",
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",