aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-08-15 17:06:38 -0400
committerTusooa Zhu <tusooa@kazv.moe>2022-08-15 17:06:38 -0400
commit7fc3809bd6ddc156c6a4f73dbe00a98b0556e89e (patch)
treee5219f29385d9a52253e506380c6e546257e8207 /build
parent2523f39ba3ad99ddb894373dc1c75118134cd358 (diff)
Update file-loader, html-webpack-plugin, http-proxy-middleware and postcss-loader
Diffstat (limited to 'build')
-rw-r--r--build/dev-server.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/build/dev-server.js b/build/dev-server.js
index c06192bd..c059f7aa 100644
--- a/build/dev-server.js
+++ b/build/dev-server.js
@@ -30,17 +30,17 @@ var devMiddleware = require('webpack-dev-middleware')(compiler, {
var hotMiddleware = require('webpack-hot-middleware')(compiler)
// force page reload when html-webpack-plugin template changes
-compiler.plugin('compilation', function (compilation) {
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
- // FIXME: This supposed to reload whole page when index.html is changed,
- // however now it reloads entire page on every breath, i suppose the order
- // of plugins changed or something. It's a minor thing and douesn't hurt
- // disabling it, constant reloads hurt much more
+// compiler.plugin('compilation', function (compilation) {
+// compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
+// // FIXME: This supposed to reload whole page when index.html is changed,
+// // however now it reloads entire page on every breath, i suppose the order
+// // of plugins changed or something. It's a minor thing and douesn't hurt
+// // disabling it, constant reloads hurt much more
- // hotMiddleware.publish({ action: 'reload' })
- // cb()
- })
-})
+// // hotMiddleware.publish({ action: 'reload' })
+// // cb()
+// })
+// })
// proxy api requests
Object.keys(proxyTable).forEach(function (context) {
@@ -48,7 +48,7 @@ Object.keys(proxyTable).forEach(function (context) {
if (typeof options === 'string') {
options = { target: options }
}
- app.use(proxyMiddleware(context, options))
+ app.use(proxyMiddleware.createProxyMiddleware(context, options))
})
// handle fallback for HTML5 history API