A Webpack loader package that integrates Font Awesome (Less-based) into webpack builds. Version 0.0.5-beta.2 is the latest, with infrequent releases. It simplifies loading Font Awesome fonts and styles by providing a preconfigured webpack loader and customizable Less configuration. Key differentiators vs raw font-awesome: automatic font loader regex, optional extract-text-webpack-plugin support, and selective style inclusion. Suitable for Webpack 1.x and 2.x projects, but unmaintained after 2017.
npm install font-awesome-webpackVerified import paths — ran on the pinned version, not inferred.
Sets up webpack loaders, imports all Font Awesome styles, and shows optional custom configuration with selective styles.
Use Font Awesome official webpack setup or font-awesome-sass-loader.
Use loaders array for Webpack 1, rules for Webpack 2. Check webpack version.
Add the import line to your entry file or a module loaded from it.
Ensure both files exist in same directory as specified in the loader query.
Use .extract({ use: ['css-loader', 'less-loader'], fallback: 'style-loader' }) for newer versions.Add { test: /\.less$/, loader: 'style-loader!css-loader!less-loader' } to loaders.Run 'npm install font-awesome-webpack font-awesome' and ensure both are in dependencies.
Update webpack config to use rules and specify loaders correctly, or downgrade to Webpack 1.
Ensure the require is inside a webpack-bundled file; not in a Node.js script.