mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-22 04:18:33 -05:00
fix: only provide baseUrl fix if baseUrl provided (#1421)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user