This repo can be used for projects that use webpack bundling. Take a look at file, have a look at
this video to understand webpackWebPack Template it can be used for projects that use webpack bundling.
You will need to install the node_modules so the package.json and webpack.config work. copy the following commands in sequence:
npm i -D webpack webpack-cli
npm i -D webpack-dev-server
to install the local servernpm i -D sass style-loader css-loader sass-loader
to install loaders for styling, sass, and cssnpm i -D html-webpack-plugin
this will istall the plugin that will make the index.html file in the dist, its based on the tmplate file in your srcnpm i -D babel-loader @babel/core @babel/preset-env
to install babel that will make your code run on browsersnpm run build
to test if webpack is working and you will see dist folder is regenrated and you will run this command anytime you wanna add images or edit the template html filenpm run build
npm run start
to display your dist in local server(browser just like the live server extention)- once webpack is working perfectly
- (this is opitional) install the linters test packages according to Microverse requirements
- for eslint
npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x
- for stylelint
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
- for webhint
npm install --save-dev hint@7.x
- for eslint
- after that you should be good to start your project
🛠 webpack installation webpack-installation
🛠 Built With HTML, CSS and JavaScript
- Can be used to startup any project using webpack
To use this template just visit the repository and press on "use this template"
To get a local copy up and running, follow these steps:
- Open your Terminal in your VSCode.
- Navigate to the desired directory[folder] to which you want to clone the repository to
- [Copy & Paste] git clone you find in the code button https://github.com/GeekyHacks/WebPackTemplate.git
In order to run this project you need:
- General Understanding of HTML & CSS
- basic Knowledge of Git Commands
- basic Knowledge of the Terminal Commands
- General Understanding of bundling and webpack
Clone this repository to your desired folder:
Example commands:
cd my-folder
git clone https://github.com/GeekyHacks/WebPackTemplate.git
--->
Must-Install-Project-with-the-Following-Programmes:
- Prettier Extention in VScode
- Git
- Node.js
- npm install
👤 GeekyHacks Bhekisile Jozi
- GitHub: Geekyhacks
- Twitter: Geekydart
- LinkedIn: Abdullah Nasser
- Adding more webpack deps
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please don't hesitate to support me with your valued contribution and don't forget to star the repo to reach more people.
I would like to thank...
- Microverse Review Team
- My Coding Partners
- Microverse Community in Slack
Can I clone this project ?**
- Of course you can as long as you fork it and star it
Can I contribute to this project?**
- definitely you can
This project is MIT licensed.