marcialwushu / VuejsByExample

:notebook: React vs Angular vs Vue.js by Example
1 stars 1 forks source link

Vuejs Installation and GetStarted #3

Open marcialwushu opened 4 years ago

marcialwushu commented 4 years ago
npm install vue --save
npm install --global vue-cli
vue init webpack compare-vue
marcialwushu commented 4 years ago

CDN

For prototyping or learning purposes, you can use the latest version with:

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions:

<script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script>

If you are using native ES Modules, there is also an ES Modules compatible build:

<script type="module">
  import Vue from 'https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.esm.browser.js'
</script>

VUEJS.ORG