-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: allow data to be prepended via options.prependData
#327
Conversation
db6fbdd
to
c54a57f
Compare
|
||
processResult(this, render(source, lessOptions), callback); | ||
processResult(this, render(lessOptions.data, lessOptions), callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was considering having getLessOptions
return an object of {lessOptions, data}
so we wouldn't pollute the lessOptions
with data
- can change if needed
README.md
Outdated
const { resourcePath, rootContext } = loaderContext; | ||
const relativePath = path.relative(rootContext, resourcePath); | ||
|
||
if (relativePath === 'styles/foo.scss') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scss
-> less
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, good catch, fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One typo 😄
This PR contains a:
Motivation / Use-Case
Add the
prependData
option thatsass-loader
offers