-
Notifications
You must be signed in to change notification settings - Fork 24
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
Injected SASS files not modified the component style on change #8
Comments
This also happens if you change an imported sass or css file. The changed file is rebuilt, but the component which imports it is not :( |
Hi 👋 It seems like . it's happening for Thanks you for your support. |
We faced a similar issue and worked around it by referencing partials by their exact name. Could you try the following (code assumes they're all partials)? sass({
injectGlobalPaths: [
'./src/scss/base/_variables.scss',
'./src/scss/base/_animations.scss',
'./src/scss/base/_mixins.scss',
'./src/scss/base/_settings.scss',
]
}) |
Still having this issue, even when referencing the partials by their full name.
|
Has there been any update on this or any workarounds? |
Is there an alternative plugin that doesn't have this issue? |
My workaround, for now, was to use stencil.config.ts:
simplified package.json:
So in this example when and |
This issue is something that exists in @ionic-team/stencil more than this sass plugin. Please go signal boost issues there like ionic-team/stencil#2635 |
This is config for stenctil sass
When I change my-component.scss, the style change properly. This is the result:
But, when I modified the injected SASS files (i.e _variables.scss) , Its not render the component style. This is the result
I want the component style render too when I change the Injected styles.
Current, I need to re run the
npm start
command to get affected style. Any fix for this?The text was updated successfully, but these errors were encountered: