Replies: 1 comment 1 reply
-
Did you ever find an answer to this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, we have an issue with how the styling for SwiperJS loads in different scenarios. To explain the issue, i first need to provide a description of our structure.
We have a monorepo with 3 packages
When running a combination of our components using the examples, styling is imported from a node file
// main.ts import '<package-name>/src/index.scss';
In this case, since the styling seems to pass through node, we need to use the paths as those are defined in the "exports" entry of the
package.json
.The problem is, though, on our build step. For the styling, we use
sass
to build it. Since it does not pass through node or package.json, it needs the direct path to the stylesheets it should import.With the above imports (
@use
), sass command runs fine, but we cannot serve our examples through node, due to an error:In general, we need to have both approaches. Serving via node to test that everything works and building via sass to produce our code. Unfortunately, due to this we can only do one or the other.
Are there any ideas on how to make this work?
Beta Was this translation helpful? Give feedback.
All reactions