Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
font-config-webpack-plugin
Advanced tools
Creating a webpack loader configurations can be quite time consuming.
The font-config-webpack-plugin
is part of the common-config-webpack-plugin
suite which tries to provide best practices for the most common loader requirements.
If no mode is explicitly set for the plugin the configuration will adjust depending on your webpack mode setting.
⚙️development mode webpack.config.js
⚙️production mode webpack.config.js
npm i --save-dev font-config-webpack-plugin
In most projects you will need to set up project specific options but you can still use all or some common-config-webpack-plugin parts.
const FontConfigWebpackPlugin = require('font-config-webpack-plugin');
module.exports = {
plugins: [new FontConfigWebpackPlugin()],
};
By default the font-config-webpack-plugin
adds a md5 hash of the font files content to the file name
to allow long-term-caching.
For example: static/media/OpenSans-Regular-webfont.c8ffdeb3.woff
To change the file name path an option called name
can be passed to the font-config-webpack-plugin
.
The name
option supports different placeholders.
const FontConfigWebpackPlugin = require('font-config-webpack-plugin');
module.exports = {
plugins: [
new FontConfigWebpackPlugin({
name: 'fonts/[name].[ext]',
}),
],
};
2.0.3 (2021-05-20)
Note: Version bump only for package webpack-config-plugins
FAQs
Preset for font webpack configuration
The npm package font-config-webpack-plugin receives a total of 190 weekly downloads. As such, font-config-webpack-plugin popularity was classified as not popular.
We found that font-config-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.