Tutorial by Examples

Setting up the folders This example assumes code to be in src/ and the output to be put into out/. As such the folder structure should look something like example/ |-- src/ | |-- index.js | `-- ... |-- out/ `-- package.json Setting up the packages Assuming a setup npm environment, we...
Setup After setting up a simple project to use webpack, babel and react issuing $npm i -g webpack-dev-server will install the development http server for quicker development. Modifying webpack.config.js var path = require('path'); module.exports = { entry: './src/index.js', output: { ...

Page 1 of 1