简体   繁体   中英

Nrwl Nx React customize static paths in build index.html

How I can change paths to my bundle files from /myBundleFile.js to /static/myBundleFile.js in script src in index.html that I get from building my React project with Nx ?

I'm using the default React plugin for Nrwl Nx.

You need to use the deployUrl property in the project.json for that project.

https://nx.dev/packages/web/executors/webpack#deployurl

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM