Skip to content

jauniuse/inject-chunk-hash-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm i -D inject-chunk-hash-webpack-plugin

Test

npm run test

Usage

webpack.config.js

const InjectChunkHashWebpackPlugin = require('inject-chunk-hash-webpack-plugin')

module.exports = {
  //...
  plugins: [
      new InjectChunkHashWebpackPlugin()
  ]
}

Plugin will replace comments

/* inject-webpack-chunk-hash */

with chunk hash. Can be useful when using an external library which renders html outside current page and requires css file which was created by using extract-text-webpack-plugin or mini-css-extract-plugin with name [name].[chunkHash].css. Some printing libraries work like that.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published