Socket
Socket
Sign inDemoInstall

gulp-sulfur

Package Overview
Dependencies
57
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-sulfur

A gulp plugin that assists in building Polymer-based Web Components.


Version published
Weekly downloads
1
Maintainers
1
Install size
1.14 MB
Created
Weekly downloads
 

Readme

Source

gulp-sulfur

A gulp plugin that assists in building Polymer-based Web Components.

Usage

gulp.task('default', function () {
	var scssFilter = filter(['*.css', '**/*.css'], { restore: true });

	return gulp.src('./src/**/*.component.html')
		.pipe(sulfur.heat())
		.pipe(babel({
			presets: ['es2015'],
			only: '*.js'
		}))
		.pipe(scssFilter)
		.pipe(sass().on('error', sass.logError))
		.pipe(scssFilter.restore)
		.pipe(sulfur.anneal())
		.pipe(gulp.dest('./build'));
});

Prevent a tag from processing

<dom-module is="x-tag">
	<template>
		<style>
			.this-will-get-processed {}
		</style>
		<style data-no-process>
			.no-processing {}
		</style>
	</template>
	<script>
		console.log("Processed");
	</script>
	<script data-no-process>
		console.log("Not processed");
	</script>
</dom-module>

Keywords

FAQs

Last updated on 08 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc