Skip to content

gongchao/chunk-version-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chunk-version-webpack-plugin

chunk-version-webpack-plugin

webpack chunk hash Json

使用

npm install chunk-version-webpack-plugin -D

在 webpack.config.js plugins 添加

var chunkVersionWebpackPlugin = require('chunk-version-webpack-plugin');

module.exports = {
    ...config,
    plugins: [
        new chunkVersionWebpackPlugin({
            filename: 'version.json',
            includeDate: true,
        })
    ]
};

输出

{
    "main": {
        "js": [
            "main.4c843659452f343d5ecc.js"
        ],
        "css": [
            "main.5d85b9b4.css"
        ],
        "date": "2018-01-28T04:38:14.438Z"
    },
}

配置

config default
filename version.json
includeDate true

About

♻️ webpack chunk hash Json

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published