Create hash file plugin for WebPack
A webpack plugin to create a file with the hash.
[hash] will be replaced by the compilation hash
Inspired by [create-file-webpack]https://github.com/Appius/create-file-webpack
Installation
npm i create-hash-file-webpack --save-dev
Usage
const CreateHashFileWebpack = // webpack config plugins: // path to folder in which the file will be created path: './dist' // file name fileName: 'index.js' // content of the file content: 'the compilation hash is [hash]' // path to folder in which the file will be created path: './dist' // file name fileName: 'scripts.html' // content of the file content: '<script src="/js/bundle.[hash].js"></script>'