vue.config.js: update dev server config

This commit is contained in:
Seth Ladygo
2019-04-10 22:28:59 -07:00
parent 9d0e694f3a
commit b0250a8ea5

View File

@ -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) {