Skip to content

Commit

Permalink
fix: only provide baseUrl fix if baseUrl provided (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
morrislaptop authored and yyx990803 committed May 31, 2018
1 parent 4e7bef7 commit af1151a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = (api, options) => {
if (!isProduction) {
const devClients = [
// dev server client
require.resolve(`webpack-dev-server/client`) + '?/sockjs-node',
require.resolve(`webpack-dev-server/client`) + (options.baseUrl !== '/' ? '?/sockjs-node' : ''),
// hmr client
require.resolve(projectDevServerOptions.hotOnly
? 'webpack/hot/only-dev-server'
Expand Down

0 comments on commit af1151a

Please sign in to comment.