Socket
Socket
Sign inDemoInstall

grunt-webpack

Package Overview
Dependencies
Maintainers
8
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-webpack - npm Package Compare versions

Comparing version 2.0.0-beta.6 to 2.0.0

12

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc