眉山水务

tengmingxue 6f5a425a98 流程组件 hai 1 ano
build e4ecc8d284 初次提交 hai 1 ano
public b5ed7cadf7 同步陵水代码 hai 1 ano
src 6f5a425a98 流程组件 hai 1 ano
theme e4ecc8d284 初次提交 hai 1 ano
.DS_Store e4ecc8d284 初次提交 hai 1 ano
.editorconfig e4ecc8d284 初次提交 hai 1 ano
.env.development e4ecc8d284 初次提交 hai 1 ano
.eslintrc.js b5ed7cadf7 同步陵水代码 hai 1 ano
.gitignore a40735b816 搭建德昌初始化环境和公司名称修改 hai 1 ano
README.md b5ed7cadf7 同步陵水代码 hai 1 ano
babel.config.js e4ecc8d284 初次提交 hai 1 ano
jest.config.js e4ecc8d284 初次提交 hai 1 ano
jsconfig.json b5ed7cadf7 同步陵水代码 hai 1 ano
npm-debug.log e4ecc8d284 初次提交 hai 1 ano
package-lock.json b5ed7cadf7 同步陵水代码 hai 1 ano
package.json e4ecc8d284 初次提交 hai 1 ano
postcss.config.js e4ecc8d284 初次提交 hai 1 ano
vue.config.js b5ed7cadf7 同步陵水代码 hai 1 ano

README.md

安装依赖

npm install npm install --ignore-scripts

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

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

启动服务

npm run dev

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

npm install core-js@2

安装 gifsicle@5.1.0

npm install gifsicle@5.1.0

启动服务报错node-sass 运行

cnpm install node-sass@latest

发布

预览发布环境效果

npm run preview

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

npm run preview -- --report

代码格式检查

npm run lint

代码格式检查并自动修复

npm run lint -- --fix

构建测试环境

npm run build:stage

构建生产环境(服务器)

npm run build:prod

生成后如果遇到cpexcel.js问题解决

var cpt = require('./cpt' + 'able'); 改成: var cpt = cptable;

可选链

npm install @babel/plugin-proposal-nullish-coalescing-operator npm install @babel/plugin-proposal-optional-chaining

# New major version of npm available! 6.14.6 -> 8.5.2 │

Run npm install -g npm to update!

安装

npm install x2js

正确的解决方法是 npm清理缓存

npm cache clean -f

删除 node_modules

rm -r node_modules

再重新

npm install