Build CSS and JS with the same name but in different folders is been replaced by Vite
So, I have two SCSS files with the same name but inside the different locations
For example:
// inside resources
scss ---> Folder contains LTR files
|
|- a.scss
|- b.scss
|- c.scss
scss-rtl ---> Folder contains RTL files
|
|- a.scss
|- b.scss
|- c.scss
so the problem is whenever I run npm run build
it generates build files but overwrites my previous files
for example :
// inside public
build
assets ---> overwrites LTR to RTL files
|
|- a.[hash].scss
|- b.[hash].scss
|- c.[hash].scss
Also,
It shows the following message
The emitted file
"assets/a.c4aecca9.css"overwrites a previously emitted file of the same name.
Now, I know the file name is same but the folder are different so I think that it should create RTL files hash differently by default.
@Owaiz_Yusufi Ah yes that is correct. Vite does not like identical files. This is a know "issue". There is a beta version out that fixes it. https://github.com/vitejs/vite/pull/9928
Please or to participate in this conversation.