Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions STEP-2.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Step 2 - Webpack Entry
# Step 2 - Webpack Entry

1. Webpack is going to create a map of our app dependencies, but to make a map you need to start somewhere. In our webpack config, we can declare a starting point for our app. To do this, we need to add this line to the module.exports of our webpack config

Expand All @@ -10,9 +10,8 @@ entry: './src/client/index.js',

3. Experiment by running the webpack build script (`$ npm run build`). Take a look at the dist folder that appears after a successful webpack build.


**You have been successful when you see a dist folder in the root of your app**

*Some miscellanious notes:*
_Some miscellanious notes:_

- If you run webpack build and in your text editor you see the dist folder, but nothing inside it - it might still be working. Some text editors will hide folders or folder contents like ```dist```. Yeah... that one didn't have me second guessing myself for like 20 min...
- If you run webpack build and in your text editor you see the dist folder, but nothing inside it - it might still be working. Some text editors will hide folders or folder contents like `dist`. Yeah... that one didn't have me second guessing myself for like 20 min...
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path')
const webpack = require('webpack')
const path = require("path");
const webpack = require("webpack");

module.exports = {
entry: './src/client/index.js',
}
entry: "./src/client/index.js",
};