You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kemeng 5d28680b0d 增加埋点 4 weeks ago
build init 1 month ago
config 暂存 1 month ago
src 增加埋点 4 weeks ago
.babelrc init 1 month ago
.editorconfig init 1 month ago
.eslintignore init 1 month ago
.eslintrc.js init 1 month ago
.gitignore init 1 month ago
.postcssrc.js init 1 month ago
.project init 1 month ago
README.md fix 1 month ago
index.html 线上版 1 month ago
package-lock.json 暂存 1 month ago
package.json 暂存 1 month ago

README.md

NBA App H5

NBA Vote 2021 H5 页面。

一、环境配置

# 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

二、目录结构

|-build(目录)     webpack构建目录
|-config(目录)    webpack构建配置目录
|-dist(目录)      打包生成目录,上传到服务器上面
|-src(目录)       源码
|-static(目录)    静态资源
    |-assets(目录)        静态资源
    |-components(目录)    组件
    |-config(目录)        配置
    |-router(目录)        路由
    |-store(目录)         状态存储
    |-utils(目录)         工具
    |-views(目录)         视图
    |-App.vue(文件)       视图入口
    |-main.js(文件)       初始文件
|-index.html(文件)
|-package.json(文件)
|-README.md(文件)

三、上线部署

# 开发环境    
    修改/src/config/config.js  env 为 dev
    执行 npm run build
 
# 正式环境
    修改/src/config/config.js  env 为 pro
    执行 npm run build