A simple & organized Webpack template for beginners
- Install Node.js
- Open your editor and the webpack template folder in the terminal
- Install all the dependencies by running
npm install
- Develop with
npm run dev
- Build for production with
npm run build
(default output indist/
, can be modified inwebpack.common.js
)
- Transpiling
- Cache Breaker
- Automatic clear
dist/
- Sourcemaps
- Dev server
- Hot reload
- webpack & webpack-cli
- webpack-merge
- copy-webpack-plugin
- mini-css-extract-plugin
- webpack-dev-server
- clean-webpack-plugin
- babel
- file-loader
- html-loader
- style-loader
- stylus
- stylus-loader
- css-loader
- three.js
- Choose your module at NPM
- Using the terminal in your webpack folder, run
npm i -D [npm_module_name]
- Use VS Code as your main editor
- Install
language-stylus
extension
- Install npm-check to check for outdated (updates), incorrect, and unused dependencies by running
npm install -g npm-check
- Use it with
npm-check
- Update dependencies with
npm-check -u
(and choose the dependency to update) ornpm-check -y
(updates all dependencies)
You have your very first Webpack Template.