Socket
Socket
Sign inDemoInstall

grunt-vulcanize

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-vulcanize - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

test/expected/strip/vulcanized.html

10

Gruntfile.js

@@ -35,3 +35,3 @@ /*

options: {
create: ['tmp/default', 'tmp/csp', 'tmp/inline', 'tmp/excludes']
create: ['tmp/default', 'tmp/csp', 'tmp/inline', 'tmp/excludes', 'tmp/strip']
}

@@ -75,2 +75,10 @@ }

}
},
strip: {
options: {
strip: true
},
files: {
'tmp/strip/vulcanized.html': ['test/fixtures/index.html']
}
}

@@ -77,0 +85,0 @@ },

4

package.json
{
"name": "grunt-vulcanize",
"version": "0.1.1",
"version": "0.1.2",
"description": "Grunt plugin for Polymer's Vulcanize",

@@ -10,3 +10,3 @@ "main": "Gruntfile.js",

"dependencies": {
"vulcanize": "~0.1.7"
"vulcanize": "~0.1.9"
},

@@ -13,0 +13,0 @@ "devDependencies": {

@@ -52,3 +52,9 @@ # grunt-vulcanize

#### options.excludues.imports
#### options.strip
Type: `Boolean`
Default value: `false`
Strip comments and empty text nodes from output.
#### options.excludes.imports
Type: `Array[String]`

@@ -90,3 +96,3 @@ Default value: `[]`

excludes: {
inports: [
imports: [
"polymer.html"

@@ -93,0 +99,0 @@ ]

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

inline: false,
strip: false,
excludes: {

@@ -24,0 +25,0 @@ imports: []

@@ -68,3 +68,12 @@ 'use strict';

test.done();
},
strip: function(test) {
test.expect(1);
var actual = grunt.file.read('tmp/strip/vulcanized.html');
var expected = grunt.file.read('test/expected/strip/vulcanized.html');
test.equal(actual, expected);
test.done();
}
};
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