{"library":"babel-plugin-file-loader","type":"library","category":null,"description":"A Babel plugin that works like Webpack's file-loader for server-side rendering (SSR) apps. It processes import/require statements for image files, copies them to an output directory, and replaces the source with a public URL. The current stable version is 2.0.0, which upgrades to Babel 7. It supports configurable naming patterns with hashing, custom public paths, output paths, and extensions. This plugin is maintained by sheerun and has 95% test coverage. Key differentiators: it does not require Webpack, works with any Node.js build pipeline, and is specifically designed for isomorphic/SSR apps where Webpack's file-loader cannot run.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","nextjs","babel","import","loader","static","images","cdn","sse"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-file-loader","imports":["import img from './file.png'","\"plugins\": [\"file-loader\"]","\"plugins\": [[\"file-loader\", { \"publicPath\": \"/static\", \"limit\": 10000 }]]"]},{"cmd":"yarn add babel-plugin-file-loader","imports":[]},{"cmd":"pnpm add babel-plugin-file-loader","imports":[]}],"homepage":null,"github":"https://github.com/sheerun/babel-plugin-file-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-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/babel-plugin-file-loader/compatibility"}}