Skip to content

Commit

Permalink
feat: tailwind 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanpro committed Jun 18, 2022
1 parent 03c3889 commit 81e90d3
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 11 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@
"@vue/cli-plugin-typescript": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"@vue/eslint-config-typescript": "^9.1.0",
"autoprefixer": "^10.4.7",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"lint-staged": "^11.1.2",
"postcss": "^8.4.14",
"prettier": "^2.4.1",
"sass": "^1.51.0",
"sass-loader": "^12.6.0",
"tailwindcss": "^3.1.3",
"typescript": "~4.5.5"
},
"gitHooks": {
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
3 changes: 3 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import "./index.css";

createApp(App).use(router).use(createPinia()).mount("#app");
11 changes: 10 additions & 1 deletion src/pages/class/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ import { defineComponent } from "vue";
export default defineComponent({
name: "MyClass",
setup() {
return {
msg: "Hello World",
};
},
});
</script>

<template>
<div>MyClass</div>
<div>
MyClass

<div class="mt-4">{{ msg }}</div>
</div>
</template>

<style lang="scss" scoped></style>
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
Loading

0 comments on commit 81e90d3

Please sign in to comment.