Skip to content

Commit 31d682b

Browse files
committed
config fixes
1 parent de074a2 commit 31d682b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tailwind.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
darkMode: 'selector',
3+
darkMode: ['selector', '[class*="dark"]'],
44
mode: 'jit',
5-
important: true,
5+
// important: true,
66
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
77
theme: {
88
extend: {}

vite.config.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import path from 'node:path';
2-
import { defineConfig, loadEnv } from 'vite';
2+
import { defineConfig } from 'vite';
33
import react from '@vitejs/plugin-react';
44
import sassDts from 'vite-plugin-sass-dts';
55
import { viteStaticCopy } from 'vite-plugin-static-copy';
6-
// const env = loadEnv(mode, process.cwd(), "");
76

87
const isProduction = process.env.NODE_ENV === 'production';
98

@@ -28,7 +27,7 @@ export default defineConfig(({ command, mode }) => ({
2827
{
2928
src: './src/scss/index.scss',
3029
dest: '',
31-
rename: (name, extension, fullPath) => `doc_viewer.${extension}`
30+
rename: (name, extension, fullPath) => `doc.${extension}`
3231
},
3332
{
3433
src: './node_modules/pdfjs-dist/build/pdf.worker.mjs',

0 commit comments

Comments
 (0)