etheranl / grace-vue-webpack-boilerplate

A boilerplate for vue-webpack-project run on koa-grace, Vue@2.x supported ๐Ÿš€

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grace-vue-webpack-boilerplate

A boilerplate for vue-webpack-project run with koa-grace, build with multiple entry

Compatibility Note: In this branch Vue@2.x supported ๐Ÿš€

Related Documentation

This boilerplate should run with Koa-grace.

Koa-grace is a new generation Nodejs SFB(Separation of Front and Back ends) framework.

Make sure you have read it!

Usage

cd ~/fe/app/
git clone git@github.com:Thunf/grace-vue-webpack-boilerplate.git grace-project

cd grace-project
npm install

npm run dev

What's Included

  • npm run dev

    • Webpack + vue-loader for single file Vue components.
    • State preserving compilation error overlay
    • Source maps
  • npm run build: Production ready build.

    • JavaScript minified with UglifyJS.
    • Static files copy with copy-webpack-plugin.
    • All static assets compiled with version hashes for efficient long-term caching, and a production index.html is auto-generated with template to these generated assets.

Thanks

This boilerplate is made from vuejs-templates/vue-webpack-boilerplate.

For detailed explanation & more functions, checkout the guide and docs for vue-loader.

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and run it on koa-grace

About

A boilerplate for vue-webpack-project run on koa-grace, Vue@2.x supported ๐Ÿš€


Languages

Language:JavaScript 80.3%Language:Vue 11.9%Language:HTML 4.7%Language:CSS 2.3%Language:Shell 0.9%