代码拉取完成,页面将自动刷新
A Vue2 MultiPage Sample Project
vue2-multipage-sample
|--- build
|--- config
|--- dist 构建后的目录结构
|--- index.html <---------------|
|--- cart.html <------------ |
|--- user.html <-------- | |
|--- static | | |
|--- js | | |
|--- user.[hash].js ---| | |
|--- cart.[hash].js -------| |
|--- index.[hash].js -----------|
...
|--- src
|--- assets
|--- components 公共组建
|--- pages 多页面文件夹(每个子文件夹都是一个独立的页面,约定:文件夹名称为页面名称)
|--- index
|--- index.html
|--- index.js
|--- App.vue root-vue-component
|--- components 页面内部的组件
|--- routes 如果存在页面路由,在此处配置页面路由配置
|--- index.js
|--- cart
|--- cart.html
|--- cart.js
|--- App.vue
|--- components
|--- routes
|--- user
|--- user.html
|--- user.js
|--- App.vue
|--- components
|--- routes
...
|--- static
|--- package.json
# 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 detailed explanation on how things work, checkout the guide and docs for vue-loader.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。