|
|
2 vuotta sitten | |
|---|---|---|
| .. | ||
| build | 2 vuotta sitten | |
| public | 2 vuotta sitten | |
| src | 2 vuotta sitten | |
| test | 2 vuotta sitten | |
| .babelrc | 2 vuotta sitten | |
| .editorconfig | 2 vuotta sitten | |
| .eslintignore | 2 vuotta sitten | |
| .eslintrc | 2 vuotta sitten | |
| .gitignore | 2 vuotta sitten | |
| .prettierignore | 2 vuotta sitten | |
| .prettierrc | 2 vuotta sitten | |
| README.md | 2 vuotta sitten | |
| package.json | 2 vuotta sitten | |
| tsconfig.json | 2 vuotta sitten | |
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 设置匿名
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"
# Or alias it in .bashrc or .zshrc
$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc
yarn
或
cnpm 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',
}],