Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guillaumebriday/webpack-boilerplate
Webpack 4 boilterplate with Babel, SASS, PostCSS, Vue, Tailwind and Pug
https://github.com/guillaumebriday/webpack-boilerplate
babel postcss pug sass tailwindcss vue webpack webpack-dev-server
Last synced: 13 days ago
JSON representation
Webpack 4 boilterplate with Babel, SASS, PostCSS, Vue, Tailwind and Pug
- Host: GitHub
- URL: https://github.com/guillaumebriday/webpack-boilerplate
- Owner: guillaumebriday
- Created: 2020-02-14T11:06:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T22:27:45.000Z (almost 4 years ago)
- Last Synced: 2024-10-04T18:26:12.925Z (about 1 month ago)
- Topics: babel, postcss, pug, sass, tailwindcss, vue, webpack, webpack-dev-server
- Language: JavaScript
- Homepage: https://webpack-4-boilerplate.netlify.app/
- Size: 1.33 MB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Static HTML pages with Webpack
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/guillaumebriday)
## Features
- Write modern CSS with [PostCSS](https://postcss.org/) and [SCSS](https://sass-lang.com/)
- Write modern JS with [Babel](https://babeljs.io/) and [Vue](https://vuejs.org/)
- Preconfigured [TailwindCSS](https://tailwindcss.com/) for rapidly building custom designs
- Automatic copying of [Pug](https://github.com/pugjs/pug) templates and static assets from `src` to `dist` folders
- Linter for scripts
- Hot reload with `webpack-dev-server`
- Build transpiled, bundled, autoprefixed, minificated and compressed files for `production`
- Support environment variables in `.env` file
- Remove unused CSS with [PurgeCSS](https://purgecss.com/)## Usage
- Write all your ES2015+ Javascript code in `src/js` and SCSS styling in `src/style`. Store static files in `public`.
- Every Pug pages in `src/views` will generate an html page with the same name.### In development
Start the webpack-dev-server on `http://localhost:8080`:
```bash
$ yarn hot
```Build the application in development mode:
```bash
$ yarn development
```Recompile whenever files change:
```bash
$ yarn watch
```Lint your code:
```bash
$ yarn lint
```### In production
Prepare the app for production in `dist` folder:
```bash
$ yarn production
```## Contributing
Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.
## License
This project is released under the MIT license.