Skip to content

直客通前端脚手架,用于快速创建一个Vue项目,支持导出umd包

Notifications You must be signed in to change notification settings

Zhiketong/webpack-simple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

webpack-simple

A simple Vue 2.0 Webpack & vue-loader setup for quick prototyping. Note this template is not suitable for production - for that you may want to use the full webpack template.

This template is Vue 2.0 compatible. For Vue 1.x use this command: vue init webpack-simple#1.0 my-project

Usage

This is a project template for vue-cli.

$ npm install -g vue-cli
$ vue init Zhiketong/webpack-simple my-project
$ cd my-project
$ npm install
$ npm run dev

What's Included

  • npm run dev: Webpack + vue-loader with proper config for source maps & hot-reload.

  • npm run build: build with HTML/CSS/JS minification.

  • npm version major|minor|patch: build and publish package

For detailed explanation on how things work, consult the docs for vue-loader. Also check out the breaking changes in vue-loader@9.0.0.

Fork It And Make Your Own

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

vue init username/repo my-project

自动生成组件模板脚本

生成页面组件

npm run new:view

请输入要生成的页面组件名称,会生成在views/目录下

directory/.../view.vue
正在生成目录...
正在生成vue文件 view
生成成功
exit
生成公共组件
npm run new:com

请输入要生成的页面组件名称,会生成在components/目录下

directory/.../component.vue
正在生成目录...
正在生成vue文件 component
生成成功
exit

About

直客通前端脚手架,用于快速创建一个Vue项目,支持导出umd包

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.0%
  • Vue 7.3%
  • HTML 1.7%