使用vue-cli实现多页面开发,目录层级可以无限嵌套
git clone https://github.com/Jessom/vue-multiple-pages.git
|- build webpack相关
|- config webpack配置相关
|- src 工作目录
|- common 资源文件
|- components 公共组件
|- module 页面文件
|- index 主页面
|- App.vue
|- index.html
|- index.js
...
|- static 静态文件资源
...
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.