Add tests, run lint

This commit is contained in:
Jonathan Creamer 2017-08-09 09:50:18 -05:00
parent 3f81c4a3b7
commit 2ca09c9734
2 changed files with 10 additions and 3 deletions

View File

@ -5,6 +5,7 @@
// Boris Cherny <https://github.com/bcherny>
// Tommy Troy Lin <https://github.com/tommytroylin>
// Mohsen Azimi <https://github.com/mohsen1>
// Jonathan Creamer <https://github.com/jcreamer898>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@ -834,9 +835,9 @@ declare namespace webpack {
class HashedModuleIdsPlugin extends Plugin {
constructor(options?: {
hashFunction: string,
hashDigest: string,
hashDigestLength: number
hashFunction?: string,
hashDigest?: string,
hashDigestLength?: number
});
}

View File

@ -424,6 +424,12 @@ plugin = new webpack.LoaderOptionsPlugin({
plugin = new webpack.EnvironmentPlugin(['a', 'b']);
plugin = new webpack.EnvironmentPlugin({a: true, b: 'c'});
plugin = new webpack.ProgressPlugin((percent: number, message: string) => {});
plugin = new webpack.HashedModuleIdsPlugin();
plugin = new webpack.HashedModuleIdsPlugin({
hashFunction: 'sha256',
hashDigest: 'hex',
hashDigestLength: 20
});
//
// http://webpack.github.io/docs/node.js-api.html