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
System: OS: macOS 13.6.5 CPU: (10) arm64 Apple M1 Pro Memory: 832.67 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: npm: 9.8.1 - ~/Library/Application Support/fnm/node-versions/v18.18.2/installation/bin/npm pnpm: 9.14.1 - ~/Library/Application Support/fnm/node-versions/v18.18.2/installation/bin/pnpm bun: 1.0.21 - ~/.bun/bin/bun Browsers: Chrome: 131.0.6778.86 Safari: 16.6
The config like bellow code:
/** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", output: { assetModuleFilename: "file[ext]" }, module: { rules: [ { test: /\.png$/, type: "asset/resource", generator: { publicPath: "https://cdn/assets/", outputPath: "cdn-assets/" } } ] }, target: 'node', entry: '.' };
But Rspack is not apply module.generator.outputPath when asset generate.
The image was generated to dist/file.png
dist/file.png
https://github.com/web-infra-dev/rspack/tree/main/tests/webpack-test/configCases/asset-modules/rule-generator-outputPath
Expected: file.png was generated to dist/cdn-assets/file.png Received: file.png was generated to dist/file.png
dist/cdn-assets/file.png
The text was updated successfully, but these errors were encountered:
getResolve
Successfully merging a pull request may close this issue.
System Info
System:
OS: macOS 13.6.5
CPU: (10) arm64 Apple M1 Pro
Memory: 832.67 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
npm: 9.8.1 - ~/Library/Application Support/fnm/node-versions/v18.18.2/installation/bin/npm
pnpm: 9.14.1 - ~/Library/Application Support/fnm/node-versions/v18.18.2/installation/bin/pnpm
bun: 1.0.21 - ~/.bun/bin/bun
Browsers:
Chrome: 131.0.6778.86
Safari: 16.6
Details
The config like bellow code:
But Rspack is not apply module.generator.outputPath when asset generate.
The image was generated to
dist/file.png
Reproduce link
https://github.com/web-infra-dev/rspack/tree/main/tests/webpack-test/configCases/asset-modules/rule-generator-outputPath
Reproduce Steps
Expected: file.png was generated to
dist/cdn-assets/file.png
Received: file.png was generated to
dist/file.png
The text was updated successfully, but these errors were encountered: