diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index 4eeb0ec146e70..e1babec67df43 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -123,6 +123,7 @@ const baseConfig = { type: 'css/mini-extract', test: /[\\/]style(\.module)?\.(pc|sc|sa|c)ss$/, chunks( chunk ) { + // Ensure that the main style file can still be generated when provided as an entry point. return chunk.name !== 'style'; }, enforce: true,