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.
sk-element-webpack
Advanced tools
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
UI component library template based on webpack4 + babel7 + vue implementation
Using npm:
# Requried axios lib
# npm i axios --save
npm install sk-element-webpack --save
Using a script tag for global use:
<!-- import CSS -->
<link rel="stylesheet" href="//xxx.xxx.com/dist/theme-default/index.css">
<!-- import JavaScript -->
<script type="text/javascript" src="//xxx.xxx.com/dist/sk-element.min.js"></script>
In main.js:
import Vue from "vue";
import SKElement from "sk-element-webpack";
import App from "./App.vue";
Vue.use(SKElement);
new Vue({
el: "#app",
render: h => h(App)
});
With the help of babel-plugin-component, we can import components we actually need, making the project smaller than otherwise.
First, install babel-plugin-component:
npm install babel-plugin-component --save-dev
Then edit .babelrc/babel.config.js:
{
"presets": [
// other config
],
"plugins": [
[
"component",
{
"libraryName": "sk-element-webpack",
"libDir": "dist",
"styleLibrary": {
"name": "theme-default",
"base": false
}
}
]
]
}
Next, if you need Text and other component, edit main.js:
import Vue from "vue";
import { Text } from "sk-element-webpack";
import App from "./App.vue";
Vue.component(Text.name, Text);
/* or
* Vue.use(Text)
*/
new Vue({
el: "#app",
render: h => h(App)
});
FAQs
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
We found that sk-element-webpack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.