Webpack React - Config
How to install:
git clone https://github.com/beniaminrychter/webpack-react-config
cd webpack-react-config
npm i
Then npm start
for development mode, and npm run build
for production.
In development mode, localhost server will run on localhost:8080
with autoreloading.
File structure:
src/
images/
scss/
js/
index.js
index.html
webpack.config.js
package.json
index.html
insrc
folder is a HTML template for our project.index.js
insrc
folder is main JavaScript file with ReactDOM.render() function. This is good place to importscss
file.