Webpack loader that encodes binary files (images, fonts) into Base64 data URIs inline. v2.0.1, stable with occasional updates. Differentiates from url-loader / file-loader by enforcing base64 encoding for all matched assets without file-size fallback. Supports configurable file size limit and custom MIME-type mapping. Requires webpack 4+ and Node >=6.2.
npm install base64-inline-loaderVerified import paths — ran on the pinned version, not inferred.
Webpack configuration using base64-inline-loader with limit and typeMapper options.
Use object syntax: { loader: 'base64-inline-loader', options: { limit: 1000 } }Wanted: set a limit to skip encoding. To exclude: add negative lookahead or use multiple rules.
Always use relative patterns like /\.(png|jpg)$/ instead of /images/
Add base64-inline-loader rule for binary file types or use file-loader/url-loader.
Run 'npm install base64-inline-loader --save-dev' and ensure config uses object syntax for options.
Ensure loader rules are scoped to binary files only, not shared with non-binary rules.
No dependency data recorded yet.