I am testing out nwb to streamline building react apps using this example project. While the app is built, the path of css and js files referenced in index.html are in root rath
You can use webpack.publicPath in your nwb.config.js file for this:
webpack.publicPath
nwb.config.js
If you want to create a path-independent build, set publicPath to blank: module.exports = { webpack: { publicPath: '' } }
If you want to create a path-independent build, set publicPath to blank:
publicPath
module.exports = { webpack: { publicPath: '' } }
Source: https://github.com/insin/nwb/blob/master/docs/Configuration.md#publicpath-string