hexo-renderer-rollup
v1.1.2
Published
Rollup renderer plugin for Hexo.
Downloads
5
Readme
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: iife
Extension
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