Skip to content

vuejs-tips/vue-component-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Vue Component Template Using Webpack

Build your standalone components using this tiny template.

This template is Vue 2.x only.

Usage

This is a project template for vue-cli.

$ npm install -g vue-cli
$ vue init vuejs-tips/vue-component-webpack-template my-component
$ cd my-component
$ npm run dev
$ npm run dist
$ npm run dist:demo
$ npm run demo:open

The generated output in ./dist can be used with node and the browser.

What's Included

  • NOTHING. Just use the global vue-cli

For configuration and detailed explanation on how things work, consult the docs for vue-cli build.

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and use it with vue-cli:

vue init your-username/your-template your-component

TODO

  • Include unit testing
  • Correctly generate css in dist

About

Vue.js template to build standalone components

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published