Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
fix for latest vue-cli issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbedard committed May 5, 2019
1 parent 77809ac commit 5127210
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ module.exports = (api, options) => {
baseUrl: undefined,
};

// use dev assets when not in production
options.baseUrl = isProduction
// configure the dev server and public path based on environment
options.devServer = {
disableHostCheck: true,
public: 'http://localhost:8080',
};

options.publicPath = isProduction
? getProductionBaseUrl(api, pluginOptions)
: 'http://localhost:8080/';

Expand Down

0 comments on commit 5127210

Please sign in to comment.