Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

dainv123/vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VUE TEMPLATE

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Run Project with Express

npm run start

Structure

  src
  |-- assets
  |-- components
  |-- |-- Base/
  |-- |-- Component A
  |-- |-- Component B
  |-- directives
  |-- events
  |-- layout
  |-- mixins
  |-- pages
  |-- plugins
  |-- router
  |-- store
  |-- utils

Custom element

import vueCustomElement from "vue-custom-element";

Vue.config.ignoredElements = [
  "base-modal"
]

Vue.customElement("base-modal", BaseModal);

Single page app

import Router from 'vue-router'

const router = new Router({})

new Vue({
  router,
  render: h => h(App)
}).$mount('#hello')

Customize configuration

See Configuration Reference.