@easy-webpack/config-fonts-and-images

Easy Webpack configuration function for fonts-and-images

Stats

StarsIssuesVersionUpdatedCreatedSize
@easy-webpack/config-fonts-and-images
0203.1.05 years ago5 years agoMinified + gzip package size for @easy-webpack/config-fonts-and-images in KB

Readme

@easy-webpack/config-fonts-and-images

Load in fonts and images into webpack bundle using file-loader and url-loader.

Smaller files would be bundled as data URL while larger files will be emitted as a separate file.

The following file extensions are supported:

  • png
  • gif
  • jpg
  • eog
  • svg
  • woff
  • woff2
  • otf
  • ttf

Installation

npm install --save-dev @easy-webpack/config-fonts-and-images

easy-webpack is also required.

Usage

// webpack.config.js
const generateConfig = require('@easy-webpack/core').generateConfig;

const baseConfig = { ... }; // project-specific config like the entry file

module.exports = generateConfig(
  baseConfig,

  require('@easy-webpack/config-fonts-and-images')()
);

// This config will 

Options

No options available

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.