Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ovh/rollup-plugin-less-tilde-importer
[DEPRECATED] — A rollup plugin providing ~ (tilde) prefix as a way to tell less compiler that it should resolve path using a configured array of module directories.
https://github.com/ovh/rollup-plugin-less-tilde-importer
less plugin rollup tilde
Last synced: 8 days ago
JSON representation
[DEPRECATED] — A rollup plugin providing ~ (tilde) prefix as a way to tell less compiler that it should resolve path using a configured array of module directories.
- Host: GitHub
- URL: https://github.com/ovh/rollup-plugin-less-tilde-importer
- Owner: ovh
- License: bsd-3-clause
- Archived: true
- Created: 2018-11-29T10:44:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T07:15:28.000Z (almost 3 years ago)
- Last Synced: 2024-05-09T17:11:33.915Z (9 months ago)
- Topics: less, plugin, rollup, tilde
- Language: JavaScript
- Homepage:
- Size: 688 KB
- Stars: 3
- Watchers: 15
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# rollup-plugin-less-tilde-importer
> A rollup plugin providing ~ (tilde) prefix as a way to tell less compiler that it should resolve path using a configured array of module directories.
:warning: This plugin is now deprecated. Please refer to [rollup-plugin-styles](https://github.com/Anidetrix/rollup-plugin-styles).
## Install
```sh
$ yarn add -D @ovh-ux/rollup-plugin-less-tilde-importer
```## Usage
```js
// rollup.config.js
import less from 'rollup-plugin-less';
import lessTildeImporter from '@ovh-ux/rollup-plugin-less-tilde-importer';
import path from 'path';export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'cjs',
sourcemap: true,
},
plugins: [
lessTildeImporter({
paths: [
path.resolve(__dirname, './node_modules'),
path.resolve(__dirname, '../../node_modules'),
],
}),
less(),
],
};
```## Related
- [@ovh-ux/rollup-plugin-less-inject](https://github.com/ovh/rollup-plugin-less-inject) - Inject Less files as CSS into HTML document's head.
See more: https://github.com/rollup/plugins.
## Contributing
Always feel free to help out! Whether it's [filing bugs and feature requests](https://github.com/ovh/rollup-plugin-less-tilde-importer/issues/new) or working on some of the [open issues](https://github.com/ovh/rollup-plugin-less-tilde-importer/issues), our [contributing guide](CONTRIBUTING.md) will help get you started.
## License
[BSD-3-Clause](LICENSE) © OVH SAS