Skip to content

ant-tool/html-webpack-hashfix-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-webpack-hashfix-plugin

NPM version Build Status Coverage Status NPM downloads Dependency Status

Webpack plugin for repath assets with hash in outputs multiple html

Features

  • replace multiple html ressets with hash

Installation

$ npm i --save html-webpack-hashfix-plugin

Usage

Add new plugin instance to your webpack config

  import HtmlHashFix from 'html-webpack-hashfix-plugin';

  const compiler = webpack({
    plugins: [
      new HtmlHashFix({
        separator: '-',
        prefixPath: '',
      })
    ]
  });

Configuration

The plugin accepts the following options:

  • separator: separator of fileName and hashCode; 文件名和 hash 值的分隔符。
  • prefixPath: add prefixPath for html assets path; 可以给 html 引用的静态文件自定义前缀路径。

License

MIT

other

  • webpack chunkhash code in local are not as same as travis-ci, you can run test case in local.

About

Webpack plugin for repath assets with hash in outputs multiple html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published