🐞 fixed Vite/ Tailwind build

This commit is contained in:
Philipp Dormann 2021-03-31 17:13:57 +02:00
parent cb5f48d913
commit 27b81d87ae
4 changed files with 16 additions and 15 deletions

View File

@ -17,17 +17,17 @@
"vue-router": "4.0.5" "vue-router": "4.0.5"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/jit": "0.1.17", "@tailwindcss/jit": "0.1.18",
"@tailwindcss/aspect-ratio": "0.2.0", "@tailwindcss/aspect-ratio": "0.2.0",
"@tailwindcss/forms": "0.3.2", "@tailwindcss/forms": "0.3.2",
"@tailwindcss/line-clamp": "0.2.0", "@tailwindcss/line-clamp": "0.2.0",
"@tailwindcss/typography": "0.4.0", "@tailwindcss/typography": "0.4.0",
"@vitejs/plugin-vue": "1.2.0", "@vitejs/plugin-vue": "1.2.1",
"@vue/compiler-sfc": "3.0.9", "@vue/compiler-sfc": "3.0.10",
"autoprefixer": "10.2.5", "autoprefixer": "10.2.5",
"tailwindcss": "2.0.4", "tailwindcss": "2.0.4",
"release-it": "14.5.0", "release-it": "14.5.0",
"vite": "2.1.3" "vite": "2.1.5"
}, },
"release-it": { "release-it": {
"git": { "git": {

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
plugins: { plugins: {
tailwindcss: {}, '@tailwindcss/jit': {},
autoprefixer: {}, autoprefixer: {},
}, },
} }

View File

@ -1,11 +1,11 @@
module.exports = { module.exports = {
purge: [], purge: [ './index.html', './src/**/*.{vue,js,ts,jsx,tsx}' ],
darkMode: "media", // or 'media' or 'class' darkMode: 'media', // or 'media' or 'class'
theme: { theme: {
extend: {}, extend: {}
}, },
variants: { variants: {
extend: {}, extend: {}
}, },
plugins: [], plugins: []
} };

View File

@ -4,6 +4,7 @@ import path from 'path';
export default defineConfig({ export default defineConfig({
plugins: [ vue() ], plugins: [ vue() ],
base: './',
resolve: { resolve: {
alias: { alias: {
'@': path.resolve(__dirname, '/src') '@': path.resolve(__dirname, '/src')