diff --git a/packages/webpack-configs/src/build.ts b/packages/webpack-configs/src/build.ts index dec98c7a..5d090b87 100644 --- a/packages/webpack-configs/src/build.ts +++ b/packages/webpack-configs/src/build.ts @@ -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 ? { diff --git a/packages/webpack-configs/tests/build.test.ts b/packages/webpack-configs/tests/build.test.ts index 516bc6ad..4928f72c 100644 --- a/packages/webpack-configs/tests/build.test.ts +++ b/packages/webpack-configs/tests/build.test.ts @@ -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"); });