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

[create-crc-app] CSS changes are not loaded #1783

Open
josejulio opened this issue Jul 18, 2023 · 2 comments
Open

[create-crc-app] CSS changes are not loaded #1783

josejulio opened this issue Jul 18, 2023 · 2 comments

Comments

@josejulio
Copy link
Member

After creating the application and trying to make changes to the css, the changes are not being reflected.

After some inspection it looks like it's an error related to the app name.

The app name is virtual-assistant and the problem seems to be that the css is preprended with .virtual-assistant but the actual class name is virtualAssistant in the DOM.

screenshot_2023-07-18T13:26:01
screenshot_2023-07-18T13:27:53

@Hyperkid123
Copy link
Contributor

@josejulio the name difference is expected due to some webpack limitation. Usually, this is fixed by adding sassPrefix config to the fec.config.js. In this case, it would be something like

sassPrefix: '.virtual-assistant .virtualAssistant'

I think we should add this config automatically if we find the appname contains a - character.

@josejulio
Copy link
Member Author

That didn't work well, as .virtual-assistant doesn't exist in the DOM.

screenshot_2023-07-19T12:53:51

But this did:

sassPrefix: '.virtualAssistant',

Thanks!

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

No branches or pull requests

2 participants