Skip to content

hrgui/my-webpack-boilerplate

Repository files navigation

@hrgui/my-webpack-boilerplate

This repo is a playground on how I use webpack.

In 2022, my personal repositories use vite.

However, there are companies and repositories that still use webpack, because it is

What is each loader/plugin/package for

Rules

  • ./public is where all the static files go
  • ./dist is where the build output will be
  • Setting environment variable NODE_ENV=production will make it a production build.
  • Setting environment variable PUBLIC_URL will make it compatible with Github Pages. Defaults to /.

Inspiration

  • create-react-app's react-scripts is a great example of webpack configuration. Some of the code was modeled off that, but not everything as this repo aims to simplify the configuration even further.

About

If I use Webpack, this is how I would use it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published