New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-tailwindcss-export-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tailwindcss-export-config

A Gulp Wrapper for tailwindcss-export-config.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by25%
Maintainers
1
Weekly downloads
 
Created
Source

Export Tailwind config options with Gulp

This is just a simple wrapper for tailwindcss-export-config what can easily integrated within Gulp tasks.

Options

All options, which are available on tailwindcss-export-config@2.3.0, are supported. More inforamtion about config uptions can be found in the documentation.

The only option not supported is destination, because working with gulp. Therefore gulp.dest can ber used.

Example Task

let tailwindExportConfig = require('gulp-tailwindcss-config-export');

gulp.task('export-to-scss', () => {
    return gulp
        .src('path/to/tailwind.config.js')
        .pipe(tailwindExportConfig({
            output: '_export.scss',
            format: 'scss',
            flat: true,
            quotedKeys: true,
        }))
        .pipe(gulp.dest('./scss/imports'));
});

Passing the Tailwind Config

Pass as string via gulp.src:

gulp.src('path/to/tailwind.config.js')
    .pipe(tailwindExportConfig({
        output: '_export.scss',
        format: 'scss',
    }))
    .pipe(gulp.dest('./scss/imports'));

Pass as string via configuration:

    // ...
    .pipe(tailwindExportConfig({
        config: 'path/to/tailwind.config.js',
        output: '_export.scss',
        format: 'scss',
    }))
    .pipe(gulp.dest('./scss/imports'));

Pass as object via configuration:

let tailwindConfig = require('./tailwind.config.js');

    // ...
    .pipe(tailwindExportConfig({
        config: tailwindConfig,
        output: '_export.scss',
        format: 'scss',
    }))
    .pipe(gulp.dest('./scss/imports'));

Keywords

FAQs

Package last updated on 21 Oct 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc