-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
[Bug]: wrong url path when using generator.publicPath
and asset module
#1118
Comments
generator.publicPath = ''
and asset module
It didn't appear in it may related to base_uri replacement logic and |
generator.publicPath = ''
and asset modulegenerator.publicPath = ''
and asset module
@alexander-akait @vankop |
@SoonIter Sorry for delay, why you need |
“auto" is not implemented, any value of generator.publicPath would cause this bug |
after set module: {
generator: {
asset: {
publicPath: 'auto',
},
},
} webpack-dist/static/css/index.392c62df.css .a {
background: url(../..//autostatic/svg/react.svg);
} |
generator.publicPath = ''
and asset modulegenerator.publicPath
and asset module
@SoonIter Remove
Don't mix |
There is the same issue - #1005 |
🤔 Yes, but when setting only
|
Yes, it is a bug/limitation as was described here - #1005 (comment) I recommend don't set multiple It is on my radar, by has low priority because in mostly cases it can be simplified and fixed by removing extra publicPath and it happens very rare |
I can continue discussion there - #1005 |
Bug report
configure webpack with
generator.asset.publicPath = ''
and assetModule as belowActual Behavior
webpack-dist/static/css/index.392c62df.css
Expected Behavior
How Do We Reproduce?
https://github.com/SoonIter/rspack-css-extract-wrong-path
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: