1.0.5 • Published 1 year ago

@pieced/font-config-webpack-plugin v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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]',
}
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago