mrmartineau / webpack-recipes

๐Ÿ†˜ A collection of webpack configurations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack recipes

styled with prettier PRs Welcome

A collection of webpack configurations

Bundle javascript


Bundle & inject CSS

Bundle & inject PostCSS processed CSS

Sass with PostCSS

Bundle & inject Sass preprocessed CSS and use PostCSS to post-process


Bundle ES2015+ Javascript with Babel transpiler

Typescript > JavaScript (coming soon)


HTML

Simplify creation of HTML files to serve your webpack bundles

Complex HTML (coming soon)

More complex version of previous example


Webpack Dev Server

Setup a simple webpack-dev-server example, that provides you with a server and live reloading.


Assets

Images (coming soon)

SVGs (coming soon)

Fonts (coming soon)

Icons (coming soon)


Testing

Jest (coming soon)

Formatting

Lint your code with ESLint

Lint your code with standard

Run the Prettier code formatter on build/watch

A11y (coming soon)


Advanced

Optimisation

Split all node_modules vendor code into separate file

Progressive Web Apps (coming soon)


Useful plugins

  • Case Sensitive Paths - Enforces case sensitive paths in Webpack requires. Extremely useful for larger teams and continuous integration setups work without issues.
  • npm Install Webpack Plugin - Speed up development by automatically installing & saving dependencies with Webpack.

How can you help?

Contributions and corrections are actively encouraged. I want this resource to be as useful as possible.


Made by Zฮ›NDฮžR โšก

About

๐Ÿ†˜ A collection of webpack configurations


Languages

Language:JavaScript 74.9%Language:HTML 22.6%Language:CSS 2.5%