0.0.16 • Published 8 years ago

rollup-plugin-scoped v0.0.16

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

rollup-plugin-scoped

Convert template and style to ES6 modules:

import style form './btn.scss';
import template form './btn.tpl';

console.log(style);
console.log(template);

Create scoped template and style:

import style form 'scoped!./btn.scss';
import template form 'scoped!./btn.tpl';

console.log(style);
console.log(template);

Build-in extensions

  • style: *.css *.sass *.scss *.less *.styl
  • template: *.tpl *.html *.jade

Installation

npm install --save-dev rollup-plugin-scoped

Usage

import { rollup } from 'rollup';
import scoped from 'rollup-plugin-scoped';

rollup({
    entry: 'app.js',
    plugins: [
        scoped()
    ]
});

License

MIT

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago