rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Feature]: hope the bundled output filename and the path injected into the CSS are different

Open WuYunlong opened this issue 1 year ago • 9 comments

What problem does this feature solve?

比如我现在配置

output: {
     assetModuleFilename: {
        filename: 'apps/desk/img/[name].[contenthash:6].[ext]'
    }
}

我想在css中使用的静态文件保持 background("img/[name].[contenthash:6].[ext]") 此时我要如何进行配置?或者说这样的需求如何才能满足

What does the proposed API of configuration look like?

有没有可能增加配置

output: {
     assetModuleFilename: {
        filename: 'apps/desk/img/[name].[contenthash:6].[ext]',
        injectname: 'img/[name].[contenthash:6].[ext]'
    }
}

WuYunlong avatar Sep 18 '24 03:09 WuYunlong