Skip to content

Commit

Permalink
docs(configuration): add binary option for module.generator (#7334)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored Jul 28, 2024
1 parent 9e4d409 commit 10e9aef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/content/configuration/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ module.exports = {
asset: {
// Generator options for asset modules

// Indicates if this asset should be treated as binary. Set to 'false' to handle it as text instead. Available since webpack 5.93.0
binary: false,

// The options for data url generator.
dataUrl: {
// Asset encoding (defaults to "base64")
Expand Down Expand Up @@ -102,6 +105,9 @@ module.exports = {
'asset/inline': {
// Generator options for asset/inline modules

// Indicates if this asset should be treated as binary. Set to 'false' to handle it as text instead. Available since webpack 5.93.0
binary: false,

// The options for data url generator.
dataUrl: {
// Asset encoding (defaults to "base64")
Expand All @@ -115,6 +121,9 @@ module.exports = {
'asset/resource': {
// Generator options for asset/resource modules

// Indicates if this asset should be treated as binary. Set to 'false' to handle it as text instead. Available since webpack 5.93.0
binary: false,

// Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR.
// type: boolean
emit: true,
Expand Down

0 comments on commit 10e9aef

Please sign in to comment.