create-react-app 修改 webpack output.publicPath
{ "homepage": "/edu/"
}
或者:
需要安装 cross-env:
yarn add cross-env
{ "script": {
"build": "cross-env PUBLIC_URL=/edu/ node scripts/build.js"
}
}
以上是 create-react-app 修改 webpack output.publicPath 的全部内容, 来源链接: utcz.com/z/381454.html