webpack-simple-example
webpack-simple-example copied to clipboard
Just a quick and dirty example on how Webpack is integrated into the project, and how to use without any frameworks or libraries
webpack-simple-example
Just a quick and dirty example on how Webpack is integrated into the project, and how to use without any frameworks or libraries.
This teaches you how to use Event Listeners in order for you to execute bundled code with Wepback and Vanilla JavaScript.
This doesn't require a web server in order for you to view it. Just open index.html and it works! (Of course, have at least /dist/main.js downloaded)
Check:
- index.js
- index.html
Other notes:
Just in case you want to make some changes, do npm run build.