
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
@pitrix/lego-font
Advanced tools
Lego-UI 使用的首选字体类型是 Roboto 与 Roboto Mono,由于部分私有云场景下无法连接外网,无法加载外部字体文件,因此建立这个项目来单独存放字体文件与字体相关的样式文件。
引入字体文件需要配合 webpack 以及 file-loader 插件一起使用:
安装 file-loader 插件:
npm install file-loader --save-dev
将 file-loader 插件配置到 webpack.config.js:
module.exports = {
entry: './src/app.js',
output: {
path: __dirname + '/dist',
filename: 'build.js',
},
module: {
loaders: [
{
test: /\.scss$/,
loader: 'style-loader!css-loader!sass-loader'
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/' // config as you like
}
}]
}
],
},
watch: true,
};
FAQs
Fonts for Lego-UI
We found that @pitrix/lego-font demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.