hoony's web study

728x90
반응형


현재 개발환경 
Vue js 3.0 + vite + tailwindcss 적용된 상태입니다.

tailwindcss 인스톨 하는 것은 제가 이전 에 작성한 포스팅을 확인해주세요.
https://islet4you.tistory.com/entry/Tailwind-css-framework-install

 

Tailwind css framework install

https://tailwindcss.com/docs/installation/using-postcss Installation: Using PostCSS - Tailwind CSS Documentation for the Tailwind CSS framework. tailwindcss.com 인스톨 방법은 공식사이트에서도 잘 나..

islet4you.tistory.com


1. tailwind.config.js 를 하나 생성해주세요.

module.exports = {
  content: [
    "./index.html",
    "./src/**/*.{vue,js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

2. index.css 파일을 제 프로젝트 경로에 있는 것처럼 추가해주세요.

@tailwind base;
@tailwind components;
@tailwind utilities;

3. main.js 를 아래와 같이 추가해주세요.

import VueRouter from 'vue-router'
import App from './App.vue'
import './index.css'
 



createApp(App).mount('#app')

4. App.vue에 테스틀 위해 아래와 같이 추가해보세요.

5. 화면에 나온 모습

위와 같이 Hello world가 css가 먹힌 상태로 나온답니다.
한개씩 셋팅하고 진행하는게 쉽지는 않네요. 

참고사이트 
https://tailwindcss.com/docs/guides/vite

 

Installation: Tailwind CSS with Vue 3 and Vite - Tailwind CSS

Documentation for the Tailwind CSS framework.

tailwindcss.com

 

728x90

'개발관련 > VUE JS' 카테고리의 다른 글

Vue3 tailwind css 적용  (0) 2021.12.21
vue-router 사용설정 및 예제  (0) 2021.12.20
Vue 3 tailwindcss header component tag 적용하기  (0) 2021.12.16
Vue.js AXIOS 모듈 인스톨 하기  (0) 2021.12.03
react project 생성 방법  (0) 2021.10.17

공유하기

facebook twitter kakaoTalk kakaostory naver band
loading