Socket
Socket
Sign inDemoInstall

grunt-webpack

Package Overview
Dependencies
Maintainers
1
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 1.0.0 to 1.0.1

example/entry.js

5

package.json
{
"name": "grunt-webpack",
"description": "Use webpack with grunt.",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/webpack/grunt-webpack",

@@ -20,3 +20,4 @@ "author": {

"peerDependencies": {
"webpack": "1.x"
"webpack": "1.x",
"webpack-dev-server": "1.x"
},

@@ -23,0 +24,0 @@ "licenses": [

2

README.md

@@ -48,3 +48,3 @@ # grunt-webpack

## License
Copyright (c) 2012-2013 Tobias Koppers @sokra
Copyright (c) 2012-2014 Tobias Koppers @sokra
Licensed under the MIT license.

@@ -12,2 +12,3 @@ /*

module.exports = function(grunt) {
var getWithPlugins = require("../lib/getWithPlugins")(grunt);

@@ -23,26 +24,2 @@ var webpack = require("webpack");

var done = this.async();
// Get options from this.data
function getWithPlugins(ns) {
var obj = grunt.config(ns) || {};
if(obj.plugins) {
// getRaw must be used or grunt.config will clobber the types (i.e.
// the array won't a BannerPlugin, it will contain an Object)
obj.plugins = grunt.config.getRaw(ns.concat(["plugins"]));
// See https://github.com/webpack/grunt-webpack/pull/9
obj.plugins = obj.plugins.map(function(plugin) {
var instance = Object.create(plugin); // Operate on a copy of the plugin, since the webpack task
// can be called multiple times for one instance of a plugin
for(var key in plugin) {
// Re-interpolate plugin string properties as templates
if(Object.prototype.hasOwnProperty.call(plugin, key) && typeof plugin[key] === "string") {
instance[key] = grunt.template.process(plugin[key]);
}
}
return instance;
});
}
return obj;
}
var options = _.merge(

@@ -49,0 +26,0 @@ {

Sorry, the diff of this file is not supported yet

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