Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-ractive

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-ractive

Compile Ractive components

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by42.86%
Maintainers
4
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 11 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc