File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
src/main/resources/assets/admin/common/styles Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 5959 "postcss-sort-media-queries" : " ^5.2.0" ,
6060 "typescript" : " ^5.9.3" ,
6161 "typescript-eslint" : " ^8.46.0" ,
62- "vite" : " ^7.1.9"
62+ "vite" : " ^7.1.9" ,
63+ "@tailwindcss/vite" : " ^4.1.13" ,
64+ "tailwindcss" : " ^4.1.13"
6365 },
6466 "browserslist" : [
6567 " extends browserslist-config-enonic"
Original file line number Diff line number Diff line change 1+ @import "tailwindcss" ;
2+
3+ @import "@enonic/ui/preset.css" ;
4+
5+ @source "../../../../../../../node_modules/@enonic/ui/" ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import cssnano from 'cssnano';
44import path from 'path' ;
55import postcssNormalize from 'postcss-normalize' ;
66import postcssSortMediaQueries from 'postcss-sort-media-queries' ;
7+ import tailwindcss from '@tailwindcss/vite' ;
78import { fileURLToPath } from 'url' ;
89import { defineConfig , type UserConfig } from 'vite' ;
910
@@ -30,7 +31,6 @@ export default defineConfig(({mode}) => {
3031 js : {
3132 root : IN_PATH ,
3233 base : './' ,
33-
3434 build : {
3535 outDir : OUT_PATH ,
3636 emptyOutDir : false ,
@@ -95,13 +95,15 @@ export default defineConfig(({mode}) => {
9595 css : {
9696 root : IN_PATH ,
9797 base : './' ,
98+ plugins : [ tailwindcss ( ) ] ,
9899 build : {
99100 outDir : OUT_PATH ,
100101 emptyOutDir : false ,
101102 minify : isProduction ,
102103 sourcemap : isDevelopment ,
103104 rollupOptions : {
104105 input : {
106+ 'styles/tailwind' : path . join ( IN_PATH , 'styles/tailwind.css' ) ,
105107 'styles/lib' : path . join ( IN_PATH , 'styles/main.less' ) ,
106108 'styles/lib-lite' : path . join ( IN_PATH , 'styles/main.lite.less' ) ,
107109 } ,
You can’t perform that action at this time.
0 commit comments