Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
基于 VUE 的前端 UI 组件库
npm install @58fe/v5 --save
导入需要的组件,例如:
import { Alert } from '@58fe/v5';
如过需要按需加载指定组件,需要配合 babel-plugin-import 插件使用
npm install @58fe/babel-plugin-v5-import --save-dev
在.babelrc 文件添加如下配置
{
"plugins": ["@58fe/babel-plugin-v5-import"]
}
原因是 V5 的样式是基于 sass 编写的,所以需要依赖以下两个 npm 包:
npm install sass-loader node-sass --save-dev
原因是 V5 的 js 源码没进行 babel 转译,可以在 webpack 配置中的增加以下 loaders:
{
test: /v5.src.*?js$/,
loader: "babel-loader"
}
1、配置全局主题样式文件theme.scss 2、修改主题色配置
$primary-color: #32BE4A;
FAQs
vue components
We found that @58fe/v5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.