Skip to content

Commit

Permalink
remove hash for additional assets, fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bsokol-wl committed Apr 4, 2024
1 parent 815600f commit ac8556d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/webpack-configs/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export function defineBuildConfig(swcConfig: SwcConfig, options: DefineBuildConf
path: outputPath,
filename: "[name].js",
publicPath,
clean: true
clean: true,
assetModuleFilename: "[name][ext][query]"
},
optimization: getOptimizationConfig(optimize),
infrastructureLogging: verbose ? {
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-configs/tests/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ describe("defineMiniCssExtractPluginConfig", () => {
});

expect(result.chunkFilename).toBe("a-custom-chunk-filename");
expect(result.filename).toBe("[name].[fullhash].css");
expect(result.filename).toBe("[name].css");
});


Expand Down

0 comments on commit ac8556d

Please sign in to comment.