1.1.2 • Published 3 years ago
hexo-renderer-rollup v1.1.2
hexo-renderer-rollup
Rollup renderer plugin for Hexo.
Install
$ npm i hexo-renderer-rollup
Options
You can configure this plugin in _config.yml.
rollup:
output:
format: iifeExtension
This plugin provide a filter rollup:renderer to allows you extend the rollup configuration.
For example, to use plugins:
const { nodeResolve } = require('@rollup/plugin-node-resolve')
const commonjs = require('@rollup/plugin-commonjs')
hexo.extend.filter.register('rollup:renderer', function (config) {
config.plugins = [nodeResolve(), commonjs()]
})Save the file in scripts/ folder.
Refer to rollup configuration.
License
MIT © AkiJoey