-
-
Notifications
You must be signed in to change notification settings - Fork 70
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: support function for loader sunch as css-loader #58 #132
base: master
Are you sure you want to change the base?
Conversation
53d5aed
to
6c96e01
Compare
Hello, this issue is a common case |
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.
Maybe we should apply this logic for all unknown functions?
The functions with scope vars will case an error, so i take a white list of function-name. |
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.
support function for loader
@@ -12,6 +12,7 @@ module.exports = (env = {}) => { | |||
poolTimeout: env.watch ? Infinity : 2000, | |||
}; | |||
const workerPoolSass = { | |||
workerAllowedFunctions: ['cssLoaderGetLocalIdent'], |
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.
Just idea - why do not try to make it for all functions, I understand that it will not work when it using something from global scope, but anyway it will solve other simple cases
Sorry for delay. What do you think?
This PR contains a:
Motivation / Use-Case
#58
function options like getLocalIdent cannot passed to the css-loader,so i need this function without scoped var.
Breaking Changes
Additional Info