-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
[Feature]: hope the bundled output filename and the path injected into the CSS are different #7916
Comments
maybe you could use other subsititution output: {
assetModuleFilename: {
filename: 'apps/desk/img/[my_name].[my_contenthash:6].[ext]'
}
} |
这样的配置无法满足我的需求,因为目前我是打包多个html页面 dist
app01
index.html
index.****.js
index.****.css
app02
index.html
index.****.js
index.****.css 我现在是想每个子目录单独进行发布 相互不想有任何影响 |
不是很理解,或许你可以提供个demo帮助理解 |
才做过一个这样的需求,希望对你有帮助
|
我代码上传了 https://github.com/WuYunlong/rspack 我现在就是build 的时候 我想把 clone 代码之后 pnpm install
pnpm build 查看打包文件 。目前图片是打包到了 因为最终项目需要使用file协议运行 而且打包出来的 apps/*** 相互不想有任何影响 |
这样的配置貌似无法满足我的需求 publicPath 是改变引入的地址 我的项目因为是多个页面的项目 所以这样可能无法满足 我代码提交了 https://github.com/WuYunlong/rspack |
这样进行配置 |
试了
@hardfist 不知道是否有计划加入 |
What problem does this feature solve?
比如我现在配置
我想在css中使用的静态文件保持 background("img/[name].[contenthash:6].[ext]")
此时我要如何进行配置?或者说这样的需求如何才能满足
What does the proposed API of configuration look like?
有没有可能增加配置
The text was updated successfully, but these errors were encountered: