grunt-webpack
Advanced tools
Comparing version 0.9.4 to 0.9.5
{ | ||
"name": "grunt-webpack", | ||
"description": "Use webpack with grunt.", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"homepage": "https://github.com/webpack/grunt-webpack", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -18,2 +18,4 @@ /* | ||
var targetDependencies = {}; | ||
grunt.registerMultiTask('webpack', 'Webpack files.', function() { | ||
@@ -39,2 +41,3 @@ var done = this.async(); | ||
var target = this.target; | ||
var cache = options.cache; | ||
@@ -45,4 +48,10 @@ options.cache = false; | ||
if(cache) | ||
if(cache) { | ||
compiler.apply(theCachePlugin); | ||
if(targetDependencies[target]) { | ||
compiler._lastCompilationFileDependencies = targetDependencies[target].file; | ||
compiler._lastCompilationContextDependencies = targetDependencies[target].context; | ||
} | ||
} | ||
var chars = 0; | ||
@@ -65,2 +74,8 @@ compiler.apply(new ProgressPlugin(function(percentage, msg) { | ||
compiler.run(function(err, stats) { | ||
if(cache) { | ||
targetDependencies[target] = { | ||
file: compiler._lastCompilationFileDependencies, | ||
context: compiler._lastCompilationContextDependencies | ||
}; | ||
} | ||
if(err) { | ||
@@ -67,0 +82,0 @@ grunt.log.error(err); |
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
5469
92