You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/configuration/output.mdx
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -350,14 +350,6 @@ This option determines the name of CSS output files on disk. See [`output.filena
350
350
351
351
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.
352
352
353
-
## output.cssHeadDataCompression
354
-
355
-
<Badgetext="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
-
361
353
## output.devtoolFallbackModuleFilenameTemplate
362
354
363
355
`string``function (info)`
@@ -420,7 +412,7 @@ If multiple modules would result in the same name, [`output.devtoolFallbackModul
420
412
421
413
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.
422
414
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`.
424
416
425
417
You can use template strings like `[name]` to dynamically generate namespaces based on the build context, providing additional flexibility.
426
418
@@ -430,10 +422,10 @@ You can use template strings like `[name]` to dynamically generate namespaces ba
430
422
module.exports= {
431
423
//...
432
424
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
0 commit comments