postcss-modules-resolve-from-alias
Advanced tools
Weekly downloads
Readme
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;
}
An object, where each key/value pair represents an alias for composes
import paths.
composes
import path prefixBoth keys and values may include a trailing /
.
If there is no trailing /
, then one is implied.
npm install
npm build
npm test
npm watch
will watch src
for changes and rebuildnpm autotest
will watch src
and test
for changes and retestMIT
FAQs
A CSS Modules transform to provide aliases for composes paths
The npm package postcss-modules-resolve-from-alias receives a total of 1,355 weekly downloads. As such, postcss-modules-resolve-from-alias popularity was classified as popular.
We found that postcss-modules-resolve-from-alias demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.