jscaffold
v1.0.7
Published
A spa webpack scaffold with asynchronous modules loading
Downloads
10
Readme
A spa webpack scaffold with asynchronous modules loading
This tool just likes vue-cli, but with new feature: asynchronous modules loading templates.
installation
npm install -g jscaffold
be aware: node >= 4.0.0 required
usage
- init
jscaffold init <tempate-name> <project-name>
tempate-name
: now just webpack, more template coming soon
project-name
: blank project name will create project in current directory, or will creat a named directory.
- list
jscaffold list
This will list the templates available.
workflow for example:
- In a vue project with webpack, we use
require.ensure
to split code , our templates will build project into modules with avinfo.json
. - The
vinfo.json
describes builded version, builded date, and builded modules list width chunckhash for loading in browser. - The
index.html
in distribute directory will load thevinfo.json
for loading modules list asynchronously in it in sequence. This is the point.