Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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/)
The npm package sk-element-webpack receives a total of 6 weekly downloads. As such, sk-element-webpack popularity was classified as not popular.
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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.