@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.
- package/lib/entry-package.js +2 -3
- package/lib/webpack.config.js +5 -2
- package/package.json +1 -1
package/lib/entry-package.js
CHANGED
|
@@ -66,9 +66,8 @@ import(__QUICKTVUI_MAIN_ENTRY__)
|
|
|
66
66
|
|
|
67
67
|
// HMR 支持
|
|
68
68
|
if (module.hot) {
|
|
69
|
-
module.hot.accept()
|
|
70
|
-
|
|
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
|
}
|
package/lib/webpack.config.js
CHANGED
|
@@ -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:
|
|
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
|
},
|