Merge pull request #30860 from NN---/patch-26

configHash can be a string in HardSourceWebpackPlugin
This commit is contained in:
Mine Starks
2018-12-02 16:21:18 -08:00
committed by GitHub
+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[];