做你学习 Vue2 的第一个项目!Vue-MuseUI 版的 cnodejs.org 社区

1,951 阅读1分钟

A Vue.js project online demo

二维码扫一扫

Skill/技术栈

Build Setup/构建步骤

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

Content/目录结构

.
├── README.md           
├── build              // 构建服务和webpack配置
├── config             // 项目不同环境的配置
├── dist               // 项目build后的目录
├── index.html         // 项目入口文件
├── package.json       // 项目配置文件
├── src                // 生产目录
│   ├── assets         // css js 和图片资源
│   ├── components     // 各种组件
│   ├── views          // 各种页面
│   ├── vuex           // vuex状态管理器
│   ├── filters.js     // 各种过滤器
│   ├── main.js        // Webpack 预编译入口
│   └── router.js      // vue路由的配置

For detailed explanation on how things work, checkout the guide and docs for vue-loader.