8.1.17 • Published 2 years ago

@exmg/exmg-cli v8.1.17

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

exmg-cli

sass-render

Main aim is to process and generate files *.css and *.scss into *.ts

Command options sass-render

aliasoptiontypedescription
-s--sourcestringTemplate file to render sass into.
-w--watchbooleanStarts the renderer in watch mode, looks at the from the root of the project
-h--helpbooleanPrint this message.

Examples sass-render

Process single file

exmg-cli -s ./test.scss

on the output file test-css.ts looks:

import {css} from 'lit-element';

export const style = css`a{color:red}`;
export default style;

Finally we can import to LitElement

import {LitElement} from 'lit-element';
import style from './test-css.js';

class MyElement extends LitElement {
  static styles = [style];
}

Process folder

exmg-cli -s ./styles/*.scss

Run in watch mode

exmg-cli -w

8.1.17

2 years ago

8.1.9

3 years ago

8.0.1

3 years ago

8.1.2

3 years ago

8.1.1

3 years ago

8.1.4

3 years ago

8.1.3

3 years ago

8.1.5

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

4 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago