Vue JS 2.0 not rendering anything?

后端 未结 4 1176
不知归路
不知归路 2021-01-30 12:28

Using Vue (^2.0.0-rc.6) + Browserify, entry point is index.js:

import Vue from \'vue\'
import App from \'./containers/App.vue\'

new Vue({ // es         


        
4条回答
  •  一整个雨季
    2021-01-30 13:11

    With Brunch I resolved this by adding this rule in brunch-config.js:

      npm: {
        aliases: {
          vue: "vue/dist/vue.js"
        }
      }
    

    see http://brunch.io/docs/config#npm

    It was to build a Vue component with an inner