一覧へ戻る
rollup/rollup-plugin-ractive(新しいタブで開きます)
主要言語: JavaScript
Precompile Ractive components
- star 数
- 11
- watcher 数
- 2
- fork 数
- 5
- issue 数
- 2
- 最終更新
- 2019/11/27
主要言語: JavaScript
Precompile Ractive components
Ractive as a project is essentially dead, and this plugin is no longer maintained nor supported.
Precompile Ractive components.
npm install --save ractive # not included!
npm install --save-dev rollup-plugin-ractiveimport { rollup } from 'rollup'; import ractive from 'rollup-plugin-ractive'; rollup({ entry: 'src/main.js', plugins: [ ractive({ // By default, all .html files are compiled extensions: [ '.html', '.ract' ], // You can restrict which files are compiled // using `include` and `exclude` include: 'src/components/**.html', // Output format. When doing server-side rendering, you might need to set this // to "cjs" if you import other JS files in your components. format: 'es6', // Options passed to Ractive.parse() parseOptions: {} }) ] }).then(...)
MIT