전체/장난하기
1분 bootstrap customizing 연습
Coolen
2020. 4. 2. 14:08
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로 바꾸는 방법이다.
반응형