Skip to content

Latest commit

 

History

History

console-ui

开始项目

国内访问 npm 比较慢,我们可以使用阿里的镜像, 在 npm 或者 yarn 命令后面加参数:

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

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

详情地址: http://npm.taobao.org/

安装依赖

yarn

npm install

启动

yarn start

npm start

构建打包

yarn build

npm run build

代理配置

build/webpack.dev.conf.js 修改proxy属性

proxy: [{
  context: ['/'],
  changeOrigin: true,
  secure: false,
  target: 'http://ip:port',
}],