{"library":"new-url-loader","title":"new-url-loader","description":"A tiny alternative to url-loader and file-loader for webpack 5, replacing deprecated loaders with asset modules. Current stable version is 0.1.1. The package is actively maintained with a simple API that delegates to webpack 5's built-in asset modules, providing backward compatibility for setups that still require a loader pipeline (e.g., @svgr/webpack). Unlike url-loader/file-loader, it uses webpack 5's native asset handling and has zero runtime dependencies beyond webpack 5 itself. Supports data URI inlining and separate file emission via asset type configuration.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install new-url-loader"],"cli":null},"imports":["import NewUrlLoader from 'new-url-loader'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        oneOf: [\n          {\n            dependency: { not: ['url'] },\n            use: ['@svgr/webpack', 'new-url-loader'],\n          },\n          {\n            type: 'asset',\n          },\n        ],\n      },\n    ],\n  },\n};","lang":"javascript","description":"Shows how to replace url-loader with new-url-loader for SVG files processed by @svgr/webpack, using webpack 5 asset modules.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}