Fix #30848 configHash can be a string in HardSourceWebpackPlugin

This commit is contained in:
NN
2018-11-27 19:00:18 +02:00
committed by Konstantin Sharon
parent 46aea293fa
commit cf4ed80a08
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for hard-source-webpack-plugin 0.9
// Type definitions for hard-source-webpack-plugin 1.0
// Project: https://github.com/mzgoddard/hard-source-webpack-plugin#readme
// Definitions by: woitechen <https://github.com/woitechen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -15,7 +15,7 @@ declare namespace hard_source_webpack_plugin { }
interface Options {
cacheDirectory?: string;
configHash?: (webpackConfig?: webpack.Configuration) => string;
configHash?: string | ((webpackConfig?: webpack.Configuration) => string);
environmentHash?: {
root: string;
directories: string[];