-
-
Notifications
You must be signed in to change notification settings - Fork 429
feat(importer): add support for custom file extensions (options.extensions
)
#583
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
feat(importer): add support for custom file extensions (options.extensions
)
#583
Conversation
Codecov Report
@@ Coverage Diff @@
## master #583 +/- ##
==========================================
+ Coverage 97.54% 97.69% +0.15%
==========================================
Files 6 6
Lines 122 130 +8
==========================================
+ Hits 119 127 +8
Misses 3 3
Continue to review full report at Codecov.
|
The change seems ok and I'm kind of surprised that the tests still work, because the resolving logic is very brittle and did break the build several times. However, I need to think about this change because I want to simplify the resolving behavior. Can you elaborate on your use case a little bit? Why would you want to deviate from Sass' default resolving behavior? Maybe, this change also needs to be aligned with #573 |
Hi @jhnns, Our use is multi-tenant web applications, where we wish to build from the same source but with specific modifications per tenant. We are currently doing this for js files with webpack using If you need more information than this, let me know. |
options.extensions
)
Codecov Report
@@ Coverage Diff @@
## master #583 +/- ##
==========================================
+ Coverage 97.54% 97.69% +0.15%
==========================================
Files 6 6
Lines 122 130 +8
==========================================
+ Hits 119 127 +8
Misses 3 3
Continue to review full report at Codecov.
|
You can do this using:
|
I've tried this and it doesn't work as previously outlined in my use case. |
@benembery can you create minimum reproducible test repo? |
Hi, I'm very sorry for the delay getting you an example. |
We are looking to add custom extensions support. Enabling files to be swapped out at compile time.
The following example allows shows the how the extensions would be configured.
In our use case, we supply an arg to webpack-cli that configures the custom extension we wish to build.
Would you be interested in adding this to sass-loader as a feature.