@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.
- package/lib/webpack.config.js +10 -9
- package/package.json +1 -1
package/lib/webpack.config.js
CHANGED
|
@@ -100,9 +100,8 @@ function detectCSSLoader() {
|
|
|
100
100
|
|
|
101
101
|
const cssLoader = detectCSSLoader()
|
|
102
102
|
|
|
103
|
-
//
|
|
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:
|
|
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:
|
|
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: {
|
|
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
|
-
//
|
|
278
|
+
// 忽略动态 require 的警告
|
|
278
279
|
ignoreWarnings: [/Critical dependency: the request of a dependency is an expression/],
|
|
279
280
|
}
|