-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
publicPath escapes '@' character while emitting css files #15012
Comments
Why you use |
I don't to call this URL via JavaScript. I want to create styles with this URL. Chrome extensions changes those URLs by themselves in runtime, see here. That is why i need |
I know this is edge case, but can be there any way to prevent Webpack from messing with |
I'm afraid not, I am investigating this problem now. Yes you don't run |
current workaround - disable ESM generation:
|
Oh, bug on Node.js side. Run |
In browser:
In Node.js
|
hm, firefox output is different too:
|
workaround with |
Reported nodejs/node#41220 |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
@alexander-akait so should we keep closed this? |
@vankop Not sure, there is different behavior in chrome (in firefox too and another) and Node.js and all says they have valid logic 😕 |
Bug report
Hi, I'm developing chrome extension and in order to use images in CSS styles i need to set
pubicPath
tochrome-extension://__MSG_@@extension_id__/
(see why).What is the current behavior?
For unknown reason CSS files are generated like this:
If the current behavior is a bug, please provide the steps to reproduce.
I prepared repository:
git clone git@github.com:jedrzejowski/my-issue-3.git webpack-issue-XXX cd webpack-issue-XXX npm ci npx webpack cat dist/index.css
What is the expected behavior?
CSS file should look like this:
Other relevant information:
webpack version:
5.65.0
, bug was introduced in version5.52.0
Node.js version: 16/17
Operating System: Linux
Additional tools: none
The text was updated successfully, but these errors were encountered: