https://github.com/stackcss/style-resolve
A wrapper for the "resolve" module that targets CSS instead of JavaScript
https://github.com/stackcss/style-resolve
Last synced: 6 months ago
JSON representation
A wrapper for the "resolve" module that targets CSS instead of JavaScript
- Host: GitHub
- URL: https://github.com/stackcss/style-resolve
- Owner: stackcss
- License: mit
- Created: 2014-03-24T05:19:25.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T03:00:47.000Z (over 6 years ago)
- Last Synced: 2025-05-31T22:10:40.838Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# style-resolve [](http://github.com/hughsk/stability-badges) #
A wrapper for the "resolve" module that targets CSS instead of JavaScript
## Usage ##
[](https://nodei.co/npm/style-resolve)
The API is equivalent for both `resolve.async` and `resolve.sync`, with the
following exceptions:
* Node's core modules are excluded.
* The "main" file for a module is specified with the "style" key instead,
use "main" key if there's no "style" key and the "main" key points to css file,
otherwise defaulting to `index.css`.
* Currently accepts implicit usage of the `.css` extension by default – though
pull requests are welcome to make additions.
## License ##
MIT. See [LICENSE.md](http://github.com/hughsk/style-resolve/blob/master/LICENSE.md) for details.