|
hai 1 ano | |
---|---|---|
.vscode | hai 1 ano | |
build | %!s(int64=3) %!d(string=hai) anos | |
config | hai 1 ano | |
mock | %!s(int64=4) %!d(string=hai) anos | |
src | hai 1 ano | |
static | %!s(int64=3) %!d(string=hai) anos | |
.babelrc | hai 1 ano | |
.editorconfig | %!s(int64=4) %!d(string=hai) anos | |
.eslintignore | %!s(int64=4) %!d(string=hai) anos | |
.eslintrc.js | hai 1 ano | |
.gitignore | hai 1 ano | |
.npmignore | %!s(int64=4) %!d(string=hai) anos | |
.postcssrc.js | %!s(int64=4) %!d(string=hai) anos | |
.prettierrc.js | hai 1 ano | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
favicon.ico | %!s(int64=4) %!d(string=hai) anos | |
index.html | %!s(int64=3) %!d(string=hai) anos | |
jsconfig.json | hai 1 ano | |
package.json | hai 1 ano | |
yarn.lock | hai 1 ano |
UI-DESIGN-V4 #搭建和运行前端开发环境 #从 svn 下载前端工程目录 #下载安装 node 下载地址 #配置本地 npm 私服地址跟网络代理 npm config set registry=http://192.168.6.13:8082/repository/npm_all/ npm config set proxy=http://192.168.6.13:8082 或者在用户根目录建立.npmrc 文本文件
C:\Users\用户名\.npmrc
,加入下面配置registry=http://172.16.104.52:8081/repository/npm_all/
#从 npm 安装项目依赖cmd命令 > cd 项目目录
#安装依赖 npm install #启动服务 端口号 8080 npm run dev #打包生产环境 npm run build #打包组件上传到 npm npm run upload #构建用于生产和查看 bundle analyzer 报告。 npm run build --report
axios 文档 ####webpack dev-server 配置说明 dev-server 官网
font 路径错误-->修改配置文件-->build--utils 里面的 ExtractTextPlugin.extract 下添加 publicPath:'../../' css 加载顺序错误-->调整 main.js 的 element 的 css 顺序必须在 router 跟 app 之前 静态文件加载错误-->修改配置文件-->config--index 里面的 assetsPublicPath 改为./ 组件复用路由监听错误-->采用 prop 降低组件与路由的高耦合