Problem/Motivation

It seems the file my_daisyui_theme/css/base/base.pcss is not being compiled by Vite.

Steps to reproduce

$ npm run dev

the file my_daisyui_theme/css/base/base.pcss is ignored

Proposed resolution

It seems there is a mismatch between what vite.config.js is looking for - files ending .pcss.css - and this file name base.pcss

So possible solutions are
change vite.config.js to include looking for .pcss
or
change the filename base.pcss to base.pcss.css

Comments

juc1 created an issue. See original summary.

christian.wiedemann’s picture

The idea is that *.pcss are only files which are included by other files.

juc1’s picture

ah so do I need @import base.pcss in app.pcss.css ?

juc1’s picture

ok this works thanks in app.pcss.css

@import "./base/base.pcss";

juc1’s picture

It might be good to adjust the comment in app.pcss.css

currently:

/**
* Include additional plugins here
*/

I would not think of base.pcss as a plugin, so it might be good to say:

/**
* Include additional plugins or .pcss files here
*/

g4mbini’s picture

Status: Active » Closed (works as designed)
Issue tags: +UI Suite Initiative

New alpha5 include base.pcss in app.pcss.css , so let's close this issue for now !

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.