We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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: auto
https://github.com/SoonIter/rspack-asset-module-publicPath-auto
// src/index.ts import x from './assets/react.svg';
rspack-dist/index.js rspack-dist/static/svg/react.svg
module.exports = "./static/svg/react.svg";
module.exports = "../../static/svg/react.svg";
module.exports = "autostatic/svg/react.svg";
😂 This feature is not supported in Webpack currently
module: { generator: { asset: { publicPath: 'auto' } }, rules: [ { test: /\.svg$/, type: 'asset', }, ] }
The text was updated successfully, but these errors were encountered:
I'm not very clear whether we need to enforce relative path in css, but it works in Rsbuild
// index.css .a { background: url('./assets/react.svg'); }
experimental: css
.a { background: url(static/svg/react.svg); }
css-extract-rspack-plugin
Sorry, something went wrong.
No branches or pull requests
What problem does this feature solve?
https://github.com/SoonIter/rspack-asset-module-publicPath-auto
input
expected output
rspack-dist/index.js
rspack-dist/static/svg/react.svg
actual output
rspack-dist/index.js
rspack-dist/static/svg/react.svg
webpack output
😂 This feature is not supported in Webpack currently
What does the proposed API of configuration look like?
The text was updated successfully, but these errors were encountered: