fixed some breaking changes due to dependency updates

This commit is contained in:
vabene1111
2022-05-30 21:42:30 +02:00
parent a6dcef4467
commit f768aef0b9
8 changed files with 3141 additions and 50439 deletions

View File

@ -79,8 +79,8 @@ module.exports = {
swDest: "../../templates/sw.js",
manifestTransforms: [
(originalManifest) => {
const result = originalManifest.map((entry) => new Object({ url: "static/vue/" + entry.url }))
return { manifest: result, warnings: [] }
const result = originalManifest.map((entry) => new Object({url: "static/vue/" + entry.url}))
return {manifest: result, warnings: []}
},
],
},
@ -117,17 +117,20 @@ module.exports = {
})
*/
config.plugin("BundleTracker").use(BundleTracker, [{ relativePath: true, path: "../vue/" }])
config.plugin("BundleTracker").use(BundleTracker, [{relativePath: true, path: "../vue/"}])
config.resolve.alias.set("__STATIC__", "static")
config.devServer
.public("http://localhost:8080")
.host("localhost")
.port(8080)
.hotOnly(true)
.watchOptions({ poll: 500 })
.set('hot', 'only')
.set('static', {watch: true})
// old webpack dev server v3 settings
// .hotOnly(true)
// .watchOptions({ poll: 500 })
// .public("http://localhost:8080")
.https(false)
.headers({ "Access-Control-Allow-Origin": ["*"] })
.headers({"Access-Control-Allow-Origin": ["*"]})
},
}