I have created a component which render number of components on overlay. When I started the server with "yarn start" everything is working fine. Then after building "yarn run build" or "nwb build" everything working fine. Even index.html file inside "demo/dist/index.html" working perfectly. When I pul this index.html file outside "demo/dist" folder. It only loading main screen. But the component I wanted to render on the overlay is not working
I have created a component which render number of components on overlay. When I started the server with "yarn start" everything is working fine. Then after building "yarn run build" or "nwb build" everything working fine. Even index.html file inside "demo/dist/index.html" working perfectly. When I pul this index.html file outside "demo/dist" folder. It only loading main screen. But the component I wanted to render on the overlay is not working
My nwb.config.js is looks like -:
module.exports = { webpack: { extractCSS: { filename: process.env.NODE_ENV === 'production' ?
my_component.css
: 'my_component.css' }, extra: { output: { filename: process.env.NODE_ENV === 'production' ? 'my_component.min.js':'my_component.js' } }, html: { mountId: 'my_component', title: 'my_component', favicon: 'src/static/images/logo.png', }, publicPath: '', }, type: 'react-component', npm: { esModules: true, // cjs: false, umd: { global: 'nexplayer', externals: { 'react': 'React', 'react-router': 'ReactRouter' } } } }Please help as soon as possible. Its urgent requirement from my client