https://github.com/katochimoto/rollup-plugin-preprocess
Preprocess HTML, JavaScript, and other files with Rollup and Preprocess
https://github.com/katochimoto/rollup-plugin-preprocess
preprocess rollup rollup-plugin
Last synced: 11 months ago
JSON representation
Preprocess HTML, JavaScript, and other files with Rollup and Preprocess
- Host: GitHub
- URL: https://github.com/katochimoto/rollup-plugin-preprocess
- Owner: Katochimoto
- License: mit
- Created: 2017-03-10T19:48:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-06T06:21:25.000Z (over 8 years ago)
- Last Synced: 2025-03-02T03:55:45.899Z (12 months ago)
- Topics: preprocess, rollup, rollup-plugin
- Language: JavaScript
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-preprocess
Preprocess HTML, JavaScript, and other files with Rollup and Preprocess.
[![Build Status][build]][build-link] [![NPM version][version]][version-link] [![Dependency Status][dependency]][dependency-link] [![devDependency Status][dev-dependency]][dev-dependency-link]
```js
// rollup.config.js
import RollupPluginPreprocess from 'rollup-plugin-preprocess';
// ...
export default {
// ...
plugins: [
RollupPluginPreprocess({
context: {
DEBUG: true
}
})
]
};
```
[build]: https://travis-ci.org/Katochimoto/rollup-plugin-preprocess.svg?branch=master
[build-link]: https://travis-ci.org/Katochimoto/rollup-plugin-preprocess
[version]: https://badge.fury.io/js/rollup-plugin-preprocess.svg
[version-link]: http://badge.fury.io/js/rollup-plugin-preprocess
[dependency]: https://david-dm.org/Katochimoto/rollup-plugin-preprocess.svg
[dependency-link]: https://david-dm.org/Katochimoto/rollup-plugin-preprocess
[dev-dependency]: https://david-dm.org/Katochimoto/rollup-plugin-preprocess/dev-status.svg
[dev-dependency-link]: https://david-dm.org/Katochimoto/rollup-plugin-preprocess#info=devDependencies