Created
February 22, 2019 22:55
-
-
Save piotrekwitkowski/84415cf4a719ee8e19337295c35d473f to your computer and use it in GitHub Desktop.
Użycie Sass/CSS w customElmentach przy użyciu lit-element i webpacka (3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { css } from 'lit-element'; //nie zapomnij o zaimportowaniu dyrektywy | |
import style from './app-layout.scss' | |
class AppLayout extends LitElement { | |
static get styles() { | |
return [ | |
css([style]), | |
]; | |
} | |
//i inne: constructor, properties, metoda render, connectedCallback, ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment