Skip to content

Commit 6fa39c0

Browse files
EugeneHlushkomontogeek
authored andcommitted
content(homepage) Mention 0CJS capability (#1884)
1 parent 74cb0e7 commit 6fa39c0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/content/index.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: webpack
66

77
<div class="splash__wrap">
88
<div class="splash__left">
9-
__app.js__
9+
__src/index.js__
1010

1111
```js
1212
import bar from './bar';
@@ -15,7 +15,7 @@ bar();
1515
```
1616
</div>
1717
<div class="splash__right">
18-
__bar.js__
18+
__src/bar.js__
1919

2020
```js
2121
export default function bar() {
@@ -30,12 +30,15 @@ export default function bar() {
3030

3131
<div class="splash__wrap">
3232
<div class="splash__left">
33-
__webpack.config.js__
33+
__[Without config](https://youtu.be/3Nv9muOkb6k?t=21293)__ or provide custom __webpack.config.js__
3434

3535
```js
36+
const path = require('path');
37+
3638
module.exports = {
37-
entry: './app.js',
39+
entry: './src/index.js',
3840
output: {
41+
path: path.resolve(__dirname, 'dist'),
3942
filename: 'bundle.js'
4043
}
4144
};
@@ -52,7 +55,7 @@ __page.html__
5255
</head>
5356
<body>
5457
...
55-
<script src="bundle.js"></script>
58+
<script src="dist/bundle.js"></script>
5659
</body>
5760
</html>
5861
```

0 commit comments

Comments
 (0)