-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ES6 import to load vue component
With latest latest mix require causes problem when loaded like this.
- Loading branch information
1 parent
499bb9f
commit 164f19c
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"/js/field.js": "/js/field.js?id=6fb3f72c7d031abeabce" | ||
"/js/field.js": "/js/field.js?id=91285b3fc9d7bd26b92f" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
Nova.booting((Vue, router, store) => { | ||
Vue.component('unlayer-editor', require('./components/UnlayerEditor')) | ||
Vue.component('index-nova-unlayer-field', require('./components/IndexField')) | ||
Vue.component('detail-nova-unlayer-field', require('./components/DetailField')) | ||
Vue.component('form-nova-unlayer-field', require('./components/FormField')) | ||
}) | ||
import UnlayerEditor from './components/UnlayerEditor.vue'; | ||
import IndexField from './components/IndexField.vue'; | ||
import DetailField from './components/DetailField.vue'; | ||
import FormField from './components/FormField.vue'; | ||
|
||
Nova.booting((Vue) => { | ||
Vue.component('unlayer-editor', UnlayerEditor); | ||
Vue.component('index-nova-unlayer-field', IndexField); | ||
Vue.component('detail-nova-unlayer-field', DetailField); | ||
Vue.component('form-nova-unlayer-field', FormField); | ||
}); |