3.1.0 • Published 9 years ago

@easy-webpack/config-fonts-and-images v3.1.0

Weekly downloads
152
License
MIT
Repository
github
Last release
9 years ago

@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

3.1.0

9 years ago

3.0.0

9 years ago

2.1.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago