Skip to content

Commit

Permalink
feat(app): Improve launch-editor-middleware configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Nov 26, 2019
1 parent 9ed0e48 commit d910893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/quasar-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const
fs = require('fs'),
merge = require('webpack-merge'),
chokidar = require('chokidar'),
debounce = require('lodash.debounce'),
openInEditor = require('launch-editor-middleware')
debounce = require('lodash.debounce')

const
appPaths = require('./app-paths'),
Expand Down Expand Up @@ -558,6 +557,7 @@ class QuasarConfig {

if (this.ctx.dev) {
const originalBefore = cfg.devServer.before
const openInEditor = require('launch-editor-middleware')

cfg.devServer = merge({
publicPath: cfg.build.publicPath,
Expand Down Expand Up @@ -588,7 +588,7 @@ class QuasarConfig {
}
}

app.use('/__open-in-editor', openInEditor())
app.use('/__open-in-editor', openInEditor(void 0, appPaths.appDir))

originalBefore && originalBefore(app)
}
Expand Down

0 comments on commit d910893

Please sign in to comment.