No Description

username 33f29647cc 数据存储 3 years ago
build e450b0eda1 项目入库 3 years ago
config e450b0eda1 项目入库 3 years ago
public e450b0eda1 项目入库 3 years ago
src 33f29647cc 数据存储 3 years ago
.eslintrc.js e450b0eda1 项目入库 3 years ago
.gitignore e450b0eda1 项目入库 3 years ago
.prettierrc e450b0eda1 项目入库 3 years ago
README.md 371cb0b4da readme 3 years ago
babel.config.js e450b0eda1 项目入库 3 years ago
jsconfig.json e450b0eda1 项目入库 3 years ago
postcss.config.js e450b0eda1 项目入库 3 years ago
vue.config.js e450b0eda1 项目入库 3 years ago

README.md

安装依赖

npm install

建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题

npm install --registry=https://registry.npm.taobao.org

启动服务

npm run dev

JavaScript 日期处理类库 moment.js

npm install moment --save

安装proj4 2.7.5",

cnpm install proj4@2.7.5

启动服务报错缺少 core-js 运行

npm install core-js@2

启动服务报错 node-sass 运行

cnpm install node-sass@latest

启动服务缺少 element-resize-detector(插件说明:全局监听)

npm install --save element-resize-detector

预览发布环境效果

npm run preview

预览发布环境效果 + 静态资源分析

npm run preview -- --report

代码格式检查

npm run lint

代码格式检查并自动修复

npm run lint -- --fix

构建测试环境

npm run build:stage

构建生产环境(服务器)

npm run build:prod

处理内存溢出

npm install --save-dev increase-memory-limit npm install --save-dev cross-env