Socket
Socket
Sign inDemoInstall

postcss-omit-import-tilde

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-omit-import-tilde

PostCSS plugin to omit tilde in sass import function argument


Version published
Weekly downloads
599
decreased by-27.13%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.1

  • Implement Tracis CI auto publish.

Readme

Source

PostCSS Omit Import Tilde

Build Status npm version

PostCSS plugin to omit tilde in sass import function argument.

Use Case

This plugin may be useful in case of large frontend ecosystem with different bundlers (webpack and gulp in my case).

For example, you have some sass file, which is built by webpack and depends from some external library. This library is imported by @import "~awesome-lib" (~ for root). Also you have another dependency from some internal file, which is built by gulp and has dependency @import "awesome-lib" (no tilde). This build is going to be broken, because webpack cannot import such dependency, and on the other hand, gulp cannot build @import "~awesome-lib" if we just change it.

So you can use this plugin in chain to build styles in gulp with dependency like @import "~awesome-lib";

Input
@import "~awesome-lib/awesome-style.scss";
Output
@import "awesome-lib/awesome-style.scss";

Usage

postcss([ require('postcss-omit-import-tilde') ])

See PostCSS docs for examples for your environment.

Keywords

FAQs

Last updated on 11 Jul 2016

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc