diff --git a/src/content/index.md b/src/content/index.md index 767ea8189d51..7d495b7352d2 100644 --- a/src/content/index.md +++ b/src/content/index.md @@ -6,7 +6,7 @@ title: webpack
-__app.js__ +__src/index.js__ ```js import bar from './bar'; @@ -15,7 +15,7 @@ bar(); ```
-__bar.js__ +__src/bar.js__ ```js export default function bar() { @@ -30,12 +30,15 @@ export default function bar() {
-__webpack.config.js__ +__[Without config](https://youtu.be/3Nv9muOkb6k?t=21293)__ or provide custom __webpack.config.js__ ```js +const path = require('path'); + module.exports = { - entry: './app.js', + entry: './src/index.js', output: { + path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' } }; @@ -52,7 +55,7 @@ __page.html__ ... - + ```