mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Merge pull request #1932 from clarkdo/dev
refactor: use nuxt-class-component in example
This commit is contained in:
commit
2385927721
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -1,14 +0,0 @@
|
||||
import Component from 'vue-class-component'
|
||||
|
||||
Component.registerHooks([
|
||||
'beforeRouteEnter',
|
||||
'beforeRouteLeave',
|
||||
'asyncData',
|
||||
'fetch',
|
||||
'middleware',
|
||||
'layout',
|
||||
'transition',
|
||||
'scrollToTop'
|
||||
])
|
||||
|
||||
export default Component
|
Loading…
Reference in New Issue
Block a user