Skip to content

Commit

Permalink
fix: improve and perfect serve option
Browse files Browse the repository at this point in the history
  • Loading branch information
yosion-p committed Jul 19, 2021
1 parent eaf60a6 commit 7f85f44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transform/transformVuecli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export class VueCliTransformer implements Transformer {
recordConver({ num: 'V02', feat: 'css options' })
// server options
vueConfig.devServer && this.transformDevServer(vueConfig, config)

if (!vueConfig.devServer && vueConfig?.configureWebpack?.devServer) this.transformDevServer(vueConfig.configureWebpack, config)

// build options
config.build = config.build || {}
config.build.outDir = vueConfig.outputDir
Expand Down

0 comments on commit 7f85f44

Please sign in to comment.