https://github.com/seogeurim/webpack-es6-boilerplate
A minimal webpack 5 boilerplate 🌐
https://github.com/seogeurim/webpack-es6-boilerplate
babel7 boilerplate webpack5
Last synced: 2 months ago
JSON representation
A minimal webpack 5 boilerplate 🌐
- Host: GitHub
- URL: https://github.com/seogeurim/webpack-es6-boilerplate
- Owner: Seogeurim
- License: mit
- Created: 2021-07-25T13:29:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-24T14:36:13.000Z (over 3 years ago)
- Last Synced: 2025-03-21T05:22:21.318Z (3 months ago)
- Topics: babel7, boilerplate, webpack5
- Language: JavaScript
- Homepage:
- Size: 636 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌐 Webpack ES6 Boilerplate
Minimal webpack 5 boilerplate using Babel, Sass with a hot dev server and a production build.
## Prerequisites
- [Node.js](https://nodejs.org/)
- [Yarn](https://yarnpkg.com/)## Getting Started
### Installation
```bash
git clone https://github.com/Seogeurim/webpack-es6-boilerplate.git
cd webpack-es6-boilerplate
yarn install
```### Development server
Webpack dev server runs at `localhost:8000`.
```bash
yarn run dev
```### Production build
Build outputs are created in `dist`.
```bash
yarn run build
```## Features
- [webpack](https://webpack.js.org/)
- [Babel](https://babeljs.io/)
- [Sass](https://sass-lang.com/)## Dependencies
### webpack
- [`webpack`](https://github.com/webpack/webpack) - Module and asset bundler.
- [`webpack-cli`](https://github.com/webpack/webpack-cli) - Command line interface for webpack
- [`webpack-dev-server`](https://github.com/webpack/webpack-dev-server) - Development server for webpack
- [`webpack-merge`](https://github.com/survivejs/webpack-merge) - Simplify development/production configuration### Babel
- [`@babel/core`](https://www.npmjs.com/package/@babel/core) - Transpile ES6+ to backwards compatible JavaScript
- [`@babel/preset-env`](https://babeljs.io/docs/en/babel-preset-env) - Smart preset for Babel### Loaders
- [`babel-loader`](https://webpack.js.org/loaders/babel-loader/) - Transpile files with Babel and webpack
- [`sass-loader`](https://webpack.js.org/loaders/sass-loader/) - Load SCSS and compile to CSS
- [`sass`](https://github.com/sass/dart-sass) - A pure JavaScript implementation of Sass
- [`css-loader`](https://webpack.js.org/loaders/css-loader/) - Resolve CSS imports
- [`style-loader`](https://webpack.js.org/loaders/style-loader/) - Inject CSS into the DOM### Plugins
- [`clean-webpack-plugin`](https://github.com/johnagan/clean-webpack-plugin) - Remove/clean build folders
- [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin) - Generate HTML files from template
- [`mini-css-extract-plugin`](https://github.com/webpack-contrib/mini-css-extract-plugin) - Extracts CSS file per JS file which contains CSS### Linters
- [`eslint`](https://github.com/eslint/eslint) - Enforce styleguide across application
- [`eslint-config-airbnb-base`](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base) - Base JS styleguide of Airbnb
- [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) - Implment prettier rules
- [`eslint-plugin-import`](https://github.com/benmosher/eslint-plugin-import) - Implment import rules
- [`eslint-plugin-prettier`](https://github.com/prettier/eslint-plugin-prettier) - Dependency for prettier usage with ESLint
- [`prettier`](https://github.com/prettier/prettier) - code formatter## License
This project is licensed under the [MIT License](./LICENSE).