一覧へ戻る
attila/metalsmith-rollup(新しいタブで開きます)
主要言語: JavaScript
A rollup.js plugin for Metalsmith
- star 数
- 4
- watcher 数
- 1
- fork 数
- 3
- issue 数
- 0
- 最終更新
- 2023/02/27
主要言語: JavaScript
A rollup.js plugin for Metalsmith
This project has not received any updates for several years now. If for some unthinkable reason you still rely on this plugin, please look for an alternative.
Thank you for your support!
A Rollup plugin for Metalsmith.
npm install --save-dev metalsmith-rollup
Currently only the JavaScript API is supported. CLI Usage via metalsmith.json is in the works.
In your build file:
const Metalsmith = require('metalsmith') const rollup = require('metalsmith-rollup') Metalsmith(__dirname). use(rollup({ input: 'src/js/main.js', // Entry point output: { dest: 'js/bundle.js' // This will be placed under "build/" } })). build()
Source map generation is supported. Processed source files can be ignored automatically by passing ignoreSources option to the plugin:
Metalsmith(__dirname). use(rollup({ input: 'src/js/main.js', output: { dest: 'js/bundle.js', sourcemap: true } }, { ignoreSources: true })). build()
Planned features
Copyright 2016 Attila Beregszaszi, MIT licensed, see LICENSE for details.