Skip to content

Commit e33bec6

Browse files
author
Guillaume Chau
committed
fix(ui): cli-ui-addon-webpack dev urls
1 parent 1b27231 commit e33bec6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/@vue/cli-ui-addon-webpack/vue.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
baseUrl: '/_addon/vue-webpack',
3+
devBaseUrl: 'http://localhost:8042/',
34
configureWebpack: {
45
output: {
56
// Important
@@ -20,6 +21,7 @@ module.exports = {
2021
devServer: {
2122
headers: {
2223
'Access-Control-Allow-Origin': '*'
23-
}
24+
},
25+
port: 8042
2426
}
2527
}

packages/@vue/cli-ui/src/components/ClientAddonLoader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
2929
methods: {
3030
loadAddon (addon) {
31-
console.log(`Loading addon ${addon.id}...`)
31+
console.log(`Loading addon ${addon.id} (${addon.url})...`)
3232
const script = document.createElement('script')
3333
this.$_scripts.set(addon.id, script)
3434
script.setAttribute('src', addon.url)

0 commit comments

Comments
 (0)