grunt-webpack
Advanced tools
Comparing version 0.10.1 to 0.10.2
{ | ||
"name": "grunt-webpack", | ||
"description": "Use webpack with grunt.", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"homepage": "https://github.com/webpack/grunt-webpack", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -19,2 +19,3 @@ # grunt-webpack | ||
someName: { | ||
// webpack options | ||
entry: "./client/lib/index.js", | ||
@@ -25,2 +26,10 @@ output: { | ||
}, | ||
stats: { | ||
// Configure the console output | ||
colors: false, | ||
modules: true, | ||
reasons: true | ||
}, | ||
storeStatsTo: "xyz", // writes the status to a variable named xyz | ||
@@ -27,0 +36,0 @@ // you may use it later in grunt i.e. <%= xyz.hash %> |
@@ -43,2 +43,4 @@ /* | ||
var storeStatsTo = options.storeStatsTo; | ||
var statsOptions = options.stats || {}; | ||
delete options.stats; | ||
var compiler = webpack(options); | ||
@@ -86,3 +88,3 @@ | ||
grunt.log.notverbose.writeln(stats.toString({ | ||
grunt.log.notverbose.writeln(stats.toString(grunt.util._.merge({ | ||
colors: true, | ||
@@ -96,6 +98,6 @@ hash: false, | ||
children: true | ||
})); | ||
grunt.verbose.writeln(stats.toString({ | ||
}, statsOptions))); | ||
grunt.verbose.writeln(stats.toString(grunt.util._.merge({ | ||
colors: true | ||
})); | ||
}, statsOptions))); | ||
if(typeof storeStatsTo === "string") { | ||
@@ -102,0 +104,0 @@ grunt.config.set(storeStatsTo, stats.toJson()); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5889
98
47