0.1.0-alpha.2 • Published 5 years ago

@arcana/font-loaders-preset v0.1.0-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Font Loaders Preset

Plug n Play Font Support Configuration for webpack.

This plugin generates webpack loader configuration for Font file support.

Usage

  • Install plugin yarn add @arcana/font-loaders-preset.
  • Add to your webpack config with your other plugins.
const FontLoaders = require('@arcana/font-loaders-preset');

module.exports = {
  plugins: [new FontLoaders()],
};
  • Use the same code for both of your configs - production and development.

  • Remove Font Loader configuration if present. The plugin will automatically handles font files with file loader.