Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

rollup/rollup-plugin-ractive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inactive

Ractive as a project is essentially dead, and this plugin is no longer maintained nor supported.

rollup-plugin-ractive

Precompile Ractive components.

Installation

npm install --save ractive # not included!
npm install --save-dev rollup-plugin-ractive

Usage

import { 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(...)

License

MIT

About

Precompile Ractive components

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •