mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
import webpack = require('webpack');
|
|
import WebpackChunkHashPlugin = require('webpack-chunk-hash');
|
|
|
|
const a: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
plugins: [
|
|
new WebpackChunkHashPlugin()
|
|
]
|
|
};
|
|
const b: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
plugins: [
|
|
new WebpackChunkHashPlugin({algorithm: 'sha-256', digest: 'latin1', additionalHashContent: () => 'test'})
|
|
]
|
|
};
|