[TIL]01.04
2020. 1. 4. 21:27ㆍTIL
Sass 를 사용하여 3rd 라이브러리들의 필요한 부분만을 import하는 글을 번역해 보았다.
React 앱 생성에서 Sass를 사용하는 단계는 다음과 같다:
1. [node-sass](https://www.npmjs.com/package/node-sass)를 설치: npm install node-sass
2. .css을 .scss 파일로 변경
3. .scss 를 사용하기 위해 import 변경
React에서 Sass로 우리는 우리가 필요한 파일만 가져올 수 있다.
1. npm install bulma -S
필요한 파일들을 import 한다.
// import using~
@import "~bulma/sass/utilities/_all.sass";
@import "~bulma/sass/_all.sass";
@import "~bulma/sass/elements/button.sass";
@import "~bulma/sass/layout/section.sass";
'TIL' 카테고리의 다른 글
[TIL] 01.06 (0) | 2020.01.06 |
---|---|
[TIL] 01.05 (0) | 2020.01.06 |
[TIL] 01.02 (0) | 2020.01.02 |
[TIL] 01.01 (0) | 2020.01.01 |
[TIL] 12.30 (0) | 2019.12.30 |