Merge pull request #1932 from clarkdo/dev

refactor: use nuxt-class-component in example
This commit is contained in:
Sébastien Chopin 2017-10-27 17:07:17 +02:00 committed by GitHub
commit 2385927721
3 changed files with 1 additions and 18 deletions

View File

@ -2,9 +2,6 @@ module.exports = {
build: {
babel: {
plugins: ['transform-decorators-legacy', 'transform-class-properties']
},
extend (config) {
config.resolve.alias['nuxt-class-component'] = '@/plugins/nuxt-class-component'
}
}
}

View File

@ -4,7 +4,7 @@
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"nuxt": "latest",
"vue-class-component": "^5.0.1"
"nuxt-class-component": "^1.0.4"
},
"scripts": {
"dev": "nuxt",

View File

@ -1,14 +0,0 @@
import Component from 'vue-class-component'
Component.registerHooks([
'beforeRouteEnter',
'beforeRouteLeave',
'asyncData',
'fetch',
'middleware',
'layout',
'transition',
'scrollToTop'
])
export default Component