-
-
Notifications
You must be signed in to change notification settings - Fork 608
cssWithMappingToString fails when used in WebSphere Portal #674
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
Comments
I would suggest changing the function from this:
to this:
I have briefly tested that change in my local installation. |
Arvnox
pushed a commit
to Arvnox/css-loader
that referenced
this issue
Feb 6, 2018
Look #675 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
The script breaks when used inside an script portlet from WebSphere Portal.
If the current behavior is a bug, please provide the steps to reproduce.
Create a project in Angular 4 and use the script provided by IBM to upload it to WebSphere Portal.
The function cssWithMappingToString(item, useSourceMap) contains a variable named "content" which, in the line 63 and 66 of the file "lib/css-base.js" is called using "[content]". WebSphere Portal replaces the string "[content]" with a blank space.
What is the expected behavior?
To not raise an exception when used. It seems to be less impactful to change the variable name of a local variable of a javascript function.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
I'm using the lastest version of the library as of 6 of February of 2018. I'm also using the lastest version of WebSphere Portal (9).
The text was updated successfully, but these errors were encountered: