You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`vueify.js` first scans all script tags with `type=vue`, then loads .vue files from remote server and compiles their contents into corresponding css/js to be dynamically injected to web page.
33
+
`vueify.js` will first scan document for script tags with `type=vue`, gather url for .vue files.
34
+
35
+
It then downloads and transpiles these .vue files and their dependent .vue files(from `import`) into ES6-compatible javascript.
36
+
37
+
We refer to .vue files inside script tags as root-level therefore they will be automatically loaded as global Vue components by `vueify.js`. Users are responsible for registering any children Vue component inside these .vue files.
33
38
34
39
35
40
## Example:
@@ -83,5 +88,6 @@ Then write your html like this:
83
88
* Please verify that `vueify.js` loads after `vue.js` and `*.vue`.
84
89
* No custom lang support ~~lang="coffee"~~ in .vue.
85
90
* Use ES6's `import/export` for nested components, CommonJS's `require/module.exports` is not currently supported.
91
+
* Cyclic dependency in .vue file will cause transpile error.
86
92
* Refer TODOs in source code for future improvements.
87
-
* Contributions are welcome! Just submit a PR ;)
93
+
* Contributions are always welcome! Just submit a PR ;)
0 commit comments