gatsby-plugin-force-file-loader
v5.0.1
Published
Use file-loader instead of url-loader in fonts, images and media rules
Downloads
828
Maintainers
Readme
gatsby-plugin-force-file-loader
Force Webpack to use file-loader
instead of url-loader
in fonts, images and
media rules.
Installation
npm install gatsby-plugin-force-file-loader
Usage
/* gatsby-config.js */
module.exports = {
plugins: [
{
resolve: 'gatsby-plugin-force-file-loader'
options: {
/* gatsby-plugin-force-file-loader options here */
}
}
]
}
Options
rules
Type: Array
. Default: ['fonts', 'images', 'media']
.
The rules that should use file-loader
instead of url-loader
. By default, all
the three types are enabled.