grunt-webpack
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0
{ | ||
"name": "grunt-webpack", | ||
"description": "Use webpack with grunt.", | ||
"version": "2.0.0-beta.6", | ||
"homepage": "https://github.com/webpack/grunt-webpack", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/webpack-contrib/grunt-webpack", | ||
"author": { | ||
@@ -11,6 +11,6 @@ "name": "Tobias Koppers @sokra" | ||
"type": "git", | ||
"url": "git@github.com:webpack/grunt-webpack.git" | ||
"url": "git@github.com:webpack-contrib/grunt-webpack.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/webpack/grunt-webpack/issues" | ||
"url": "https://github.com/webpack-contrib/grunt-webpack/issues" | ||
}, | ||
@@ -46,7 +46,7 @@ "engines": { | ||
"eslint": "^3.6.1", | ||
"fs-extra": "^1.0.0", | ||
"fs-extra": "^2.0.0", | ||
"glob": "^7.0.5", | ||
"grunt": "^1.0.0", | ||
"nyc": "^10.0.0", | ||
"webpack": "^2.2.0-rc" | ||
"webpack": "^2.2.0" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
@@ -1,4 +0,4 @@ | ||
# grunt-webpack [![Build Status](https://travis-ci.org/webpack/grunt-webpack.svg?branch=master)](https://travis-ci.org/webpack/grunt-webpack) [![codecov](https://codecov.io/gh/webpack/grunt-webpack/branch/master/graph/badge.svg)](https://codecov.io/gh/webpack/grunt-webpack) | ||
# grunt-webpack [![Build Status](https://travis-ci.org/webpack-contrib/grunt-webpack.svg?branch=master)](https://travis-ci.org/webpack-contrib/grunt-webpack) [![codecov](https://codecov.io/gh/webpack-contrib/grunt-webpack/branch/master/graph/badge.svg)](https://codecov.io/gh/webpack-contrib/grunt-webpack) | ||
**This is the readme for version 2.0 which is currently available as beta version. For the 1.0 readme visit [here](https://github.com/webpack/grunt-webpack/tree/1.0).** | ||
**This is the readme for version 2.0 which is currently available as beta version. For the 1.0 readme visit [here](https://github.com/webpack-contrib/grunt-webpack/tree/1.0).** | ||
@@ -5,0 +5,0 @@ Use [webpack](https://github.com/webpack/webpack) with grunt. |
@@ -35,3 +35,2 @@ 'use strict'; | ||
webpack: { | ||
context: '.', | ||
output: { | ||
@@ -38,0 +37,0 @@ path: '/' |
@@ -57,3 +57,8 @@ 'use strict'; | ||
} else { | ||
this.fixPlugins(obj, ns.concat(['plugins'])); | ||
if (obj.webpack) { | ||
// handle webpack-dev-server options | ||
this.fixPlugins(obj.webpack, ns.concat(['webpack', 'plugins'])); | ||
} else { | ||
this.fixPlugins(obj, ns.concat(['plugins'])); | ||
} | ||
} | ||
@@ -60,0 +65,0 @@ |
@@ -15,9 +15,15 @@ 'use strict'; | ||
if (Array.isArray(options)) { | ||
return options.map((opt) => this.filterGruntOptions(opt)); | ||
return options.map((opt) => this.filterOptions(opt)); | ||
} | ||
// ensure cache is disabled, as we add our own CachePlugin to support | ||
// multiple targets in one run with different caches | ||
options.cache = false; | ||
return this.filterOptions(options); | ||
} | ||
filterOptions(options) { | ||
if (!options.watch) { | ||
// ensure cache is disabled in non watch mode, as we add our own CachePlugin to support | ||
// multiple targets in one run with different caches | ||
options.cache = false; | ||
} | ||
return this.filterGruntOptions(options); | ||
@@ -24,0 +30,0 @@ } |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17863
372
0