@pieced/font-config-webpack-plugin

1.0.5 • Public • Published

@pieced/font-config-webpack-plugin 👋

Version Download Webpack Last Commit License: MIT

Automatically configuration webpack5 font loader

Install

npm i --save-dev @pieced/font-config-webpack-plugin

Webpack Config

const FontConfigWebpackPlugin = require('@pieced/font-config-webpack-plugin');
module.exports = {
  plugins: [new FontConfigWebpackPlugin()],
};

Options

suffix

  • type array
  • default ['woff', 'woff2', 'eot', 'ttf', 'otf']

generator

const defaultGenerator = {
  filename: webpack.mode === 'development' ? '[path][name][ext]' : 'static/font/[contenthash:10][ext]',
}

Dependents (0)

Package Sidebar

Install

npm i @pieced/font-config-webpack-plugin

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

8.29 kB

Total Files

5

Last publish

Collaborators

  • adming