{"library":"file-loader","type":"library","category":null,"description":"Resolves import/require on a file into a URL and emits the file into the output directory. Stable version 6.2.0 (last release Oct 2020, maintenance mode) with webpack 4/5 support. Key differentiator from alternatives (e.g., url-loader, webpack asset modules) is explicit file emission with custom naming, output path, and public path configuration. Supports hashing, ES modules, and sourceFilename.","language":"javascript","status":"maintenance","version":"6.2.0","tags":["javascript","webpack"],"last_verified":"Wed May 27","install":[{"cmd":"npm install file-loader","imports":["import img from './file.png';","const img = require('./file.png');","module.exports = { module: { rules: [ { test: /\\.png$/, loader: 'file-loader' } ] } };"]},{"cmd":"yarn add file-loader","imports":[]},{"cmd":"pnpm add file-loader","imports":[]}],"homepage":null,"github":"https://github.com/webpack-contrib/file-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/file-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/file-loader/compatibility"}}