Skip to content

Commit 31ac66e

Browse files
authored
Update output-management.mdx
In Preparation section we see creating two modules: 1) src/index.js 2) src/print.js Inside webpack config we made two enrty points: ``` entry: { index: './src/index.js', print: './src/print.js', }, ``` We, also, made changes inside html: ``` <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Output Management</title> <script src="./print.bundle.js"></script> </head> <body> <script src="./index.bundle.js"></script> </body> </html> ``` We expose print.bundle.js and index.bundle.js module, bucause after building we will have two separated modules But, there is anoter odd code. We import print.js module inside index.js module. I not understand for what. We will have separated modules, connected on index.html, but index.js already include print module inside itself. It's weird, or i am stupit. Please explain me, why we should include print module indide index module?
1 parent 3a220d7 commit 31ac66e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/guides/output-management.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default function printMe() {
4646

4747
And use that function in our `src/index.js` file:
4848

49+
4950
**src/index.js**
5051

5152
```diff

0 commit comments

Comments
 (0)