8000 GitHub - maelon/jscaffold: spa webpack scaffold with asynchronous module loading
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

maelon/jscaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. In a vue project with webpack, we use require.ensure to split code , our templates will build project into modules with a vinfo.json.
  2. The vinfo.json describes builded version, builded date, and builded modules list width chunckhash for loading in browser.
  3. The index.html in distribute directory will load the vinfo.json for loading modules list asynchronously in it in sequence. This is the point.

About

spa webpack scaffold with asynchronous module loading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0