-
Notifications
You must be signed in to change notification settings - Fork 34
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
Syntax #124
Comments
@alexisvincent are you using something like webpack or browserify? There are some examples of using CSS Modules alongside other postcss plugins: |
@joshwnj Nope, trying to use this project to fix up the JSPM loader. |
@alexisvincent ah ok. Have you seen the jspm demo? I'm not very familiar with JSPM myself but if I were looking I would start by trying to add the |
Yep, the issue is that scss isn't a plugin, it's a syntax, so the postcss semantics are different, the syntax gets passed in as part of the process options. However in this project we can't change the options. To resolve this I've forked and manually added the ability to pass options. Was hoping to get the conversation started around extending this project to deal with options as well. |
@alexisvincent Excited to hear that you found a workaround! I'm not using JSPM myself, but am curious as to how you were able to pass in your processOptions. I was looking to use SCSS with TypeScript in Webpack while getting around a current issue with |
@jessicamindel Oh boy! This was soo long ago I can barely remember anything about it. Issues around JSPM and SystemJS were largely that all this loading had to happen in the browser, rather than serverside. I'm sorry, but I'm going to be of absolutely no use. Good luck though! |
I don't think this project has kept up to date though, so you might have more luck elsewhere. |
I think you can add some param to support scss syntax like: css-modules-loader-core/src/index.js Line 18 in 3d83770
tell me what is the best approach for this. the scss processor works well with css, and in case that some scss appear, we can parse it with the same syntax processor also we can allow send some custom syntax. |
How would we use syntax plugins, like https://github.com/postcss/postcss-scss?
The text was updated successfully, but these errors were encountered: