gitignore-build-webpack-plugin

Never mention webpack build directory in your gitignore

Usage no npm install needed!

<script type="module">
  import gitignoreBuildWebpackPlugin from 'https://cdn.skypack.dev/gitignore-build-webpack-plugin';
</script>

README

Gitignore Build Webpack Plugin

Never mention webpack build directory in your gitignore

No need to add an extra gitignore entry for your webpack output. This plugin automagically excludes webpack output from git.

Installation

yarn add gitignore-build-webpack-plugin

Usage

Add plugin in your webpack config:

const GitignoreBuildWebpackPlugin = require('gitignore-build-webpack-plugin');

plugins: [
  ...,
  new GitignoreBuildWebpackPlugin()
];

That's it.