rollup-plugin-ractive

    2.2.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i rollup-plugin-ractive

    DownloadsWeekly Downloads

    10

    Version

    2.2.0

    License

    MIT

    Unpacked Size

    3.95 kB

    Total Files

    5

    Last publish

    Collaborators

    • evs-chris
    • fskreuz
    • martin-kolarik
    • rich_harris