$ cnpm install @camelot-project/webpack-hash-exclude-plugin
A simple Webpack plugin originally written by huangzhongzhen that allows excluding certain file names from having the hash added.
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
})
Copyright 2014 - 2017 © taobao.org |