fixed some breaking changes due to dependency updates
This commit is contained in:
@ -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": ["*"]})
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user