티스토리 뷰

npm, yarn을 설치했다면, bootstrap theme 변경을 위한 초간단 테스트를 할 수가 있다.

#!/bin/bash  
mkdir bootstrap-customizing  
cd bootstrap-customizing  
yarn init -y  
yarn add bootstrap node-sass  
mkdir -p public/css  
yarn node-sass --recursive --output public/css \  
  --source-map true --source-map-contents true \  
  node_modules/bootstrap/scss

bootstrap은 scss로 관리되고 있으므로 yarn(npm)으로 받아다가 바로 컴파일 해 볼 수가 있다. 위의 예는 directory 만들고, 빠르게 node package 를 초기화한 다음, bootstrap과 node-sass 컴파일러를 받은 후 directory to directory로 scss 파일을 css로 바꾸는 방법이다.

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함