vue.config.js: update dev server config
This commit is contained in:
@ -20,14 +20,16 @@ module.exports = {
|
|||||||
.set('__STATIC__', 'static')
|
.set('__STATIC__', 'static')
|
||||||
|
|
||||||
config.devServer
|
config.devServer
|
||||||
// .public('http://newbeta.keen.apparentinc.com/vue/static/')
|
.public('http://newbeta.keen.apparentinc.com/vue')
|
||||||
.publicPath('')
|
.publicPath('')
|
||||||
.host('0.0.0.0')
|
.host('0.0.0.0')
|
||||||
.port(8001)
|
.port(8001)
|
||||||
// .contentBase(path.join(__dirname, 'dist'))
|
// .contentBase(path.join(__dirname, 'dist'))
|
||||||
.hot(true)
|
.hot(false)
|
||||||
.hotOnly(true)
|
.hotOnly(false)
|
||||||
// .watchOptions({poll: 1000})
|
.disableHostCheck(true) // https://github.com/webpack/webpack-dev-server/issues/1604
|
||||||
|
// .watchOptions({poll: true})
|
||||||
|
.clientLogLevel('info')
|
||||||
.https(false)
|
.https(false)
|
||||||
.headers({"Access-Control-Allow-Origin": ["\*"]})
|
.headers({"Access-Control-Allow-Origin": ["\*"]})
|
||||||
.setup(function(app, server) {
|
.setup(function(app, server) {
|
||||||
|
|||||||
Reference in New Issue
Block a user