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.
houningjuan d1b5f09caa sign 1 month ago
build init 2 months ago
config check_bind 2 months ago
src sign 1 month ago
static init 2 months ago
.babelrc init 2 months ago
.editorconfig init 2 months ago
.eslintignore init 2 months ago
.eslintrc.js init 2 months ago
.gitignore f 2 months ago
.postcssrc.js init 2 months ago
.project init 2 months ago
Dockerfile build 2 months ago
README.md init 2 months ago
build.sh 增加构建脚本 2 months ago
index.html 签名重写 2 months ago
package-lock.json init 2 months ago
package.json init 2 months ago

README.md

NBA App H5

NBA App 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