Last active
February 24, 2024 13:42
-
-
Save yogain123/b73384c117c79116399ec89996d258b3 to your computer and use it in GitHub Desktop.
webpack 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hola |
Fixing button click
IIFE is has a separate scope in the browser, and this is done so that it does not pollute the entire namespace or the entire global space in the browser
this is good approch as it does not create any conflict between any other file loader in the browser as it will have its own scope (execution context)
CSS Loaders
when you index.js file is hit it sees an import of index.css , and css-loader now know how to be resolve this dependency, but it doesnot know what to be doing with it, so that data besically passes to the style loader, so it's kind of creating a style tag in html doc and putting css there
loader executes from right to left in order
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why Webpack