You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2022. It is now read-only.
import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
// Since we are using HtmlWebpackPlugin WITHOUT a template, we should create our own root node in the body element before rendering into it
let root = document.createElement('div');
root.id = "root";
document.body.appendChild( root );
// Now we can render our application into it
render( <App />, document.getElementById('root') );
So we need a something like template (index.html) ? Or how can I fix the issue?
Hello,
after runing npm run build , a dist folder is created and contains files like bundle.js, bundle.css and index.html
But then, if I'm runing npm run prod I see only a blank screen. This happens because the generated index.html is empty:
I believe the cause is index.js
So we need a something like template (index.html) ? Or how can I fix the issue?
P.S. The same issue if I'm using npm run package
Regards
dit