-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
Support for loader parameters being Objects in styleLoaders #421
Comments
@nsunga where did you pass in webpack or bootstraprc or the file path in require command? we got a issue just do not know how to pass
|
@s3341458 bootstraprc i think u dont need sassOptions if ur just passing sourceMaps sourceMaps is a parent key for sass-loader: https://github.com/webpack-contrib/sass-loader#options i think this would work: sass-loader?sourceMap=true |
Hi @nsunga, I am working with @s3341458 and we tried this solution but unfortunately it didn't work. This is how we're trying to get bootstrap to load: The bootstrap-config.json has a key called "styleLoaders" which we pass After digging into the project files we found that for this to work we would need to modify the /src/utils/joinLoaders.js file. Any help would be appreciated. |
I was able to pass with the following settings in the bootstrap-config.json file:
This works; however, it passes with a few warnings: |
If you all need a code change, please submit a PR. |
Hello!
Technologies being used:
I think the documentation is incorrect: https://github.com/shakacode/bootstrap-loader#styleloaders
notice how
sass-loader
is passed inoutputStyle=expanded
, butsass-loader
only accepts that key-value under a parent key calledsassOptions
: https://github.com/webpack-contrib/sass-loader#sassoptionswhat I tried is the following:
This will throw a Validation Error
What ends up being passed to
sass-loader
is this object:{ sassOptions: "{outputStyle:'expanded'}", sourceMap: true }
Notice how
sassOptions
is tied to a string.Does the later versions of
bootstrap-loader
support object params? If not, is there a plan for support?sass-loader?outputStyle=expanded
still throws the same Validation Error as wellThe text was updated successfully, but these errors were encountered: