Support for loader parameters being Objects in styleLoaders
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, webpack
- Domain
- build-system
Research direction
Start with the styleLoaders documentation and reproduce the reported sass-loader v10 configuration using bootstrap-loader v3. Trace how styleLoaders parameters are parsed and passed to the loader, then verify that nested object parameters are accepted without the shown validation error and that the documentation matches the supported syntax.
Written by the indexing model from the issue text.
Description
Hello!
Technologies being used:
- bootstrap-loader v3
- sass-loader v10
I think the documentation is incorrect: https://github.com/shakacode/bootstrap-loader#styleloaders
styleLoaders:
- style-loader
- css-loader
- sass-loader
# You can apply loader params here:
- sass-loader?outputStyle=expanded
notice how sass-loader is passed in outputStyle=expanded, but sass-loader only accepts that key-value under a parent key called sassOptions: https://github.com/webpack-contrib/sass-loader#sassoptions
what I tried is the following:
- ... - sass-loader?sassOptions={outputStyle:'expanded'}
This will throw a Validation Error
ValidationError: Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
- options.sassOptions should be one of these:
object { … } | function
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 well
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 467
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from shakacode/bootstrap-loader
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
shakacode/bootstrap-loader#424 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
shakacode/bootstrap-loader#407 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
shakacode/bootstrap-loader#398 · 1 comment ·
All issues in shakacode/bootstrap-loader
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Add: EUROTV NEWSOpenchannels:add check:passed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
curriculum documentation quality
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
githubnext/gh-aw-workshop#4638 ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openclaw/openclaw-enterprise#2571 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day