vueify-watch
v1.0.1
Published
Continuously compile Vue.js files on the fly!
Downloads
8
Readme
vueify-watch
Continuously compile Vue.js files on the fly!
About
This dev tool leverages vueify and browserify to allow you to have a "watch" option for vueify. To get started, install vueify-watch
globally using npm install -g vueify-watch
. In your working directory use the command vueify-watch app.js index.js
in order to
compile an app.js
file into a minified index.js
.
watch.json
In order to watch multiple Vue and JavaScript files from child directories, include a watch.json file. Use the following configuration to watch files inside of folders named contact
, home
, and login
. Note that the "main" file is called
app.js
; this file will require all other Vue files. For example: require('./contact/contact.vue')
.
{
"main": "app.js",
"vue": [
"./contact",
"./home",
"./login"
]
}
If you have included a watch.json
file in your working directory, just use the command vueify-watch
with no arguments.
it will compile all JavaScript and Vue files included in the watch.json configuration.