node.js에서 bootstrap 적용시
2022. 11. 21. 09:51
728x90
1.적용파일 위치에서 npm 을 이용하여 bootstrap 을 설치
sudo npm install bootstrap
2. app.js 파일에 설정
app.use('/js', express.static(__dirname + '/node_modules/bootstrap/dist/js')); // redirect bootstrap JS
app.use('/css', express.static(__dirname + '/node_modules/bootstrap/dist/css')); // redirect CSS bootstrap
3. 해당 페이지에 적용
<head>
<link rel="stylesheet" href="/css/bootstrap.min.css">
</head>
<table>
<tr></tr>
<td></td>
</table>
<script src = "/js/bootstrap.min.js"></script>
728x90
'IT' 카테고리의 다른 글
gitbook Custom Domain(깃북 커스텀 도메인 설정) (0) | 2022.11.18 |
---|---|
CentOS 7 방화벽 firewalld (0) | 2022.11.08 |
GCP 외부 ssh 접속시 ! (0) | 2022.11.08 |
Grafana -Loki-Promtail 대시보드로그 설정 (1) | 2022.09.16 |
iptables ufw 충돌 ufw 룰이 안먹음 iptables 룰이안먹음 (0) | 2022.08.02 |