A full-featured Webpack setup with hot-reload, lint-on-save, unit testing & css extraction.
This template is Vue 2.0 compatible. For Vue 1.x use this command:
vue init webpack#1.0 my-project
This is a project template for vue-cli. It is recommended to use npm 3+ for a more efficient dependency tree.
$ npm install -g vue-cli
$ vue init webpack my-project
$ cd my-project
$ npm install
$ npm run dev
This will scaffold the project using the master
branch. If you wish to use the latest version of the webpack template, do the following instead:
$ vue init webpack#develop my-project
The develop branch is not considered stable and can contain bugs or not build at all, so use at your own risk.
The development server will run on port 8080 by default. If that port is already in use on your machine, the next free port will be used.
npm run dev
: first-in-class development experience.
vue-loader
for single file Vue components.npm run build
: Production ready build.
index.html
with proper URLs to these generated assets.npm run build --report
to build with bundle size analytics.npm run unit
: Unit tests run in JSDOM with Jest, or in PhantomJS with Karma + Mocha + karma-webpack.
npm run e2e
: End-to-end tests with Nightwatch.
You can fork this repo to create your own boilerplate, and use it with vue-cli
:
vue init username/repo my-project
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。