Skip to content

Commit 2beccb5

Browse files
author
Yoshimasa Obayashi
authored
docs: update vue-cli of en-US, syncing with zh-CN (#1799)
1 parent ff995a7 commit 2beccb5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/vue/use-with-vue-cli.en-US.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,9 @@ Vue.component(Button.name, Button);
7070

7171
Vue.config.productionTip = false;
7272

73-
/* eslint-disable no-new */
7473
new Vue({
75-
el: '#app',
76-
components: { App },
77-
template: '<App/>',
78-
});
74+
render: h => h(App),
75+
}).$mount('#app');
7976
```
8077

8178
Modify `src/App.vue`
@@ -161,12 +158,9 @@ Remove the `import 'ant-design-vue/dist/antd.css';` statement added before becau
161158

162159
Vue.config.productionTip = false
163160

164-
/* eslint-disable no-new */
165161
new Vue({
166-
el: '#app',
167-
components: { App },
168-
template: '<App/>'
169-
})
162+
render: h => h(App)
163+
}).$mount('#app')
170164
```
171165

172166
Then reboot with `npm run dev` and visit the demo page, you should not find any [warning messages](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png) in the console, which prove that the `import on demand` config is working now. You will find more info about it in [this guide](/docs/vue/getting-started/#Import-on-Demand).

0 commit comments

Comments
 (0)