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

postcss-modules-resolve-from-alias

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-modules-resolve-from-alias

A CSS Modules transform to provide aliases for composes paths

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

CSS Modules: Resolve imports from aliases

Build Status

With this config:

{
  'css': 'src/style'
}

transforms:

.myClass {
  composes: button from "css/button.css";
  color: green;
}

into:

.myClass {
  composes: button from "src/style/button.css";
  color: green;
}

Options

An object, where each key/value pair represents an alias for composes import paths.

  • key - composes import path prefix
  • value - replacement value for the import path prefix

Both keys and values may include a trailing /. If there is no trailing /, then one is implied.

Building

npm install
npm build
npm test

Build Status

  • Lines: Coverage Status
  • Statements: codecov.io

Development

  • npm watch will watch src for changes and rebuild
  • npm autotest will watch src and test for changes and retest

License

MIT

Keywords

FAQs

Package last updated on 31 Oct 2015

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