Skip to content

Commit 72508f9

Browse files
authored
docs(configuration): remove cssHeadDataCompression (#7475)
1 parent de10c08 commit 72508f9

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

src/content/configuration/output.mdx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,6 @@ This option determines the name of CSS output files on disk. See [`output.filena
350350

351351
You **must not** specify an absolute path here. However, feel free to include folders separated by `'/'`. This specified path combines with the [`output.path`](#outputpath) value to pinpoint the location on the disk.
352352

353-
## output.cssHeadDataCompression
354-
355-
<Badge text="5.91.0+" />
356-
357-
`boolean`
358-
359-
This option determines whether to compress the metadata generated in the head tag of CSS files. This option defaults to `true` in `production` and `false` in `development` [mode](/configuration/mode/) respectively.
360-
361353
## output.devtoolFallbackModuleFilenameTemplate
362354

363355
`string` `function (info)`
@@ -420,7 +412,7 @@ If multiple modules would result in the same name, [`output.devtoolFallbackModul
420412

421413
This option determines the module's namespace used with the [`output.devtoolModuleFilenameTemplate`](#outputdevtoolmodulefilenametemplate). When not specified, it will default to the value of: [`output.uniqueName`](#outputuniquename). It's used to prevent source file path collisions in sourcemaps when loading multiple libraries built with webpack.
422414

423-
For example, if you have 2 libraries, with namespaces `library1` and `library2`, which both have a file `./src/index.js` (with potentially different contents), they will expose these files as `webpack://library1/./src/index.js` and `webpack://library2/./src/index.js`.
415+
For example, if you have 2 libraries, with namespaces `library1` and `library2`, which both have a file `./src/index.js` (with potentially different contents), they will expose these files as `webpack://library1/./src/index.js` and `webpack://library2/./src/index.js`.
424416

425417
You can use template strings like `[name]` to dynamically generate namespaces based on the build context, providing additional flexibility.
426418

@@ -430,10 +422,10 @@ You can use template strings like `[name]` to dynamically generate namespaces ba
430422
module.exports = {
431423
//...
432424
output: {
433-
filename: "[name]-bundle.js",
434-
library: "library-[name]",
435-
libraryTarget: "commonjs",
436-
devtoolNamespace: "library-[name]" // Sets a unique namespace for each library
425+
filename: '[name]-bundle.js',
426+
library: 'library-[name]',
427+
libraryTarget: 'commonjs',
428+
devtoolNamespace: 'library-[name]', // Sets a unique namespace for each library
437429
},
438430
};
439431
```

0 commit comments

Comments
 (0)