Skip to content

Commit

Permalink
Closes #9
Browse files Browse the repository at this point in the history
This has the terrible side effect of a dumb console message:
```
App running at:
  - Local:   http://localhost:8080/http://localhost:8080/ 
  - Network: http://10.0.1.12:8080/http://localhost:8080/
```

Hopefully can be addressed in a later release.
  • Loading branch information
chasegiunta authored Aug 8, 2018
1 parent 66df784 commit 42b6dbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ config = {

module.exports = {
runtimeCompiler: true,
baseUrl: '/',
baseUrl: process.env.NODE_ENV === 'production'
? '/'
: `${config.https ? 'https' : 'http'}://${config.host}:${config.port}/`,
outputDir: 'web/dist',
filenameHashing: process.env.NODE_ENV === 'production' ? true : false,
css: {
Expand All @@ -21,6 +23,7 @@ module.exports = {
// host: config.host,
// port: config.port,
https: config.https,
headers: { 'Access-Control-Allow-Origin': '*' },
before(app, server) {
const sane = require('sane')
var watcher = sane(path.join(__dirname, config.watchDir), {glob: ['**/*']});
Expand All @@ -43,4 +46,4 @@ module.exports = {
config.plugins.delete('preload')
config.plugins.delete('prefetch')
}
}
}

0 comments on commit 42b6dbb

Please sign in to comment.