Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeping scss subfolders in the dist folder #358

Open
rafael-trevisan opened this issue Mar 17, 2021 · 2 comments
Open

Keeping scss subfolders in the dist folder #358

rafael-trevisan opened this issue Mar 17, 2021 · 2 comments
Assignees

Comments

@rafael-trevisan
Copy link

Hi, I am migrating some projects from Nitro v4 to v5.

In my v4 project, I have a folder scss which contains subfolders for i.e., pages, templates, themes and etc. In all these folders I have .scss files.

When I run apex-nitro build I need that the dist folder contains a folder called css with all these subfolders and the css compiled for each file.

Is that something we can easily achieve with v5?

I am looking to keep the same folder structure as I had with v4 because otherwise I will have to change the references in the apps.

@vincentmorneau
Copy link
Collaborator

Interesting.

In v5 (advanced mode) we have designed for a single output of js and css, so the short answer is no.

However I think this should be supported, so adding to 5.1

@rafael-trevisan
Copy link
Author

That's great, @vincentmorneau! Thx.

My use case for these subfolders is: I have a folder called pages which has scss files specific for any given "pages" I need to customize. Other folder called templates which has the scss files for any custom template the app is using and so on.

Screen Shot 2021-03-17 at 9 54 35 AM

Then, of course, in each "page" or "custom template" I add the reference for the css/pages/page-1234.css for example. It gets organized and easy to maintain.

Another thing I noticed was that other folders inside my "src" folder were not being copied to the "dist" folder, for i.e., I have a folder called assets, lib and pwa and ideally I will need all these folders being copied. I could obviously move these folders to the new static folder, but then I'd have to re-map all the references in the app. Does that make sense?

I switched back to v4.1.6 for now, once v5.1 is available I will give another shot.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants