Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.4.2 to 0.5.0

test/expected/no-strip-excludes/vulcanized.html

13

Gruntfile.js

@@ -36,3 +36,3 @@ /*

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

@@ -98,2 +98,13 @@ }

}
},
'no-strip-excludes': {
options: {
'strip-excludes': false,
excludes: {
imports: ['polymer.html']
}
},
files: {
'tmp/no-strip-excludes/vulcanized.html': ['test/fixtures/index.html']
}
}

@@ -100,0 +111,0 @@ },

4

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

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

"dependencies": {
"vulcanize": "^0.5.0"
"vulcanize": "^0.6.0"
},

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

@@ -88,2 +88,9 @@ # grunt-vulcanize

#### options['strip-excludes']
Type: `Boolean`
Default value: `true`
By default, HTML Imports excluded from inlining are removed.
Set this flag to keep the excluded imports in the output file.
### Usage Examples

@@ -90,0 +97,0 @@

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

strip: false,
'strip-excludes': true,
excludes: {

@@ -28,0 +29,0 @@ imports: [],

@@ -100,3 +100,13 @@ 'use strict';

test.done();
},
'no-strip-excludes': function(test) {
test.expect(1);
var actual = grunt.file.read('tmp/no-strip-excludes/vulcanized.html');
var expected = grunt.file.read('test/expected/no-strip-excludes/vulcanized.html');
test.equal(actual, expected);
test.done();
}
};

Sorry, the diff of this file is not supported yet

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