@camelot-project/webpack-hash-exclude-plugin

Ignore certain files from file name hashing.

Usage no npm install needed!

<script type="module">
  import camelotProjectWebpackHashExcludePlugin from 'https://cdn.skypack.dev/@camelot-project/webpack-hash-exclude-plugin';
</script>

README

Webpack Hash Exclude Plugin

A simple Webpack plugin originally written by huangzhongzhen that allows excluding certain file names from having the hash added.

Using

const webpackHashExcludePlugin = require('webpack-hash-exclude-plugin')
new webpackHashExcludePlugin({
  excludeJs: ['styles', 'vendor', 'index'], //chunkname, default: []
  excludeCss: ['styles'], //chunkname, default: []
  cancelHtmlHash: true // Cancel chunkhash in html template default: true
})