Skip to content

Vue@2.x supported already 🚀, A boilerplate for vue-webpack-project run on koa-grace, setup with Multiple entry

Notifications You must be signed in to change notification settings

Thunf/grace-vue-webpack-boilerplate

Repository files navigation

grace-vue-webpack-boilerplate

A boilerplate for vue-webpack-project run with koa-grace, setup with Multiple entry.

Compatibility Note:

  • In this branch Vue@2.x supported 🚀
  • 1.x Please see the version boilerplate@v1.x

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!

Features

Usage

Start

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

cd grace-vue-webpack-boilerplate

yarn
// or: npm install

npm run dev

New files

npm run new

> ?type: // select a mode
 > init both controller & vue 
   init controller only 
   init vue files only 
> ?name: // get column name

Build

npm run build

Related Articles

前后端分离之路 - Vue2项目多入口模板改造方案🚀

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

Vue@2.x supported already 🚀, A boilerplate for vue-webpack-project run on koa-grace, setup with Multiple entry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published