Slide 15
Slide 15 text
Do it from scratch
webpack config
node_mobules
public
index.html
favicon.ico
…
src
components/
utils/
…
App.jsx
index.js
package.json
webpack.config.js
.babelrc
…
const path = require("path");
const webpackConfig = {
mode: "development",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "build"),
filename: "react.bundle.js",
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: "babel-loader",
},
],
},
..