1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

добавление смены темы, в прошлый раз не добавилось

This commit is contained in:
MoonTestUse1
2025-01-05 05:15:48 +06:00
parent 1f1f37c991
commit fba5b250a7
2 changed files with 16 additions and 6 deletions

View File

@@ -6,14 +6,22 @@ WORKDIR /app
COPY frontend/package*.json ./
# Очищаем cache и node_modules
RUN npm cache clean --force
RUN rm -rf node_modules package-lock.json
RUN npm cache clean --force && \
rm -rf node_modules package-lock.json
# Устанавливаем зависимости и плагин для форм
# Устанавливаем все зависимости включая devDependencies
RUN npm install && \
npm install -D @tailwindcss/forms
npm install -D @tailwindcss/forms && \
npm cache clean --force
# Копируем исходный код
# Копируем конфигурационные файлы
COPY frontend/tailwind.config.js ./
COPY frontend/postcss.config.js ./
COPY frontend/vite.config.ts ./
COPY frontend/tsconfig.json ./
COPY frontend/tsconfig.node.json ./
# Копируем остальной исходный код
COPY frontend/ .
# Открываем порт для Vite

View File

@@ -13,6 +13,8 @@ export default {
},
},
plugins: [
require('@tailwindcss/forms')
require('@tailwindcss/forms')({
strategy: 'class'
})
],
}