Skip to content

Commit

Permalink
🚧 Add tailwindcss support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Toly committed Oct 22, 2024
1 parent a4f070c commit 82e845d
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 26 deletions.
101 changes: 76 additions & 25 deletions src/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/popup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@
"@vue/eslint-config-typescript": "^14.0.1",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.19",
"cypress": "^13.15.0",
"eslint": "^9.12.0",
"eslint-plugin-cypress": "^4.0.0",
"eslint-plugin-vue": "^9.29.0",
"jsdom": "^25.0.1",
"npm-run-all2": "^6.2.3",
"postcss": "^8.4.38",
"prettier": "^3.3.3",
"start-server-and-test": "^2.0.8",
"tailwindcss": "^3.4.14",
"typescript": "~5.5.4",
"vite": "^5.4.8",
"vite-plugin-vue-devtools": "^7.4.6",
Expand Down
6 changes: 6 additions & 0 deletions src/popup/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
4 changes: 4 additions & 0 deletions src/popup/src/assets/main.css
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@import './base.css';

@tailwind base;
@tailwind components;
@tailwind utilities;
2 changes: 1 addition & 1 deletion src/popup/src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<main>123</main>
<main></main>
</template>

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

0 comments on commit 82e845d

Please sign in to comment.