Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cc-svg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-svg - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.babelrc

9

package.json
{
"name": "cc-svg",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -12,3 +12,3 @@ "main": "lib/index.js",

"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack -p",
"build": "webpack -p && BABEL_ENV=production babel src/ --out-dir dist/ -D",
"dev": "webpack -w",

@@ -30,5 +30,7 @@ "server": "webpack-dev-server"

"autoprefixer-loader": "^3.2.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-minify": "^0.3.0",
"css-loader": "^0.28.9",

@@ -38,6 +40,7 @@ "extract-text-webpack-plugin": "^3.0.2",

"less-loader": "^4.0.5",
"style-loader": "^0.20.1",
"style-loader": "^0.20.3",
"webpack": "^3.11.0",
"webpack-cli": "^2.0.10",
"webpack-dev-server": "^2.11.1"
}
}
# cc-svg
cc-svg能方便的将图片放入内圆角效果
## 使用方法
在图片元素中加入data-cc-svg参数
## 使用效果

@@ -23,3 +23,3 @@ import { round } from '../static/svg'

} else {
_ccSvgError('No image has \'data-cc-svg\' attr')
this._ccSvgError('No image has \'data-cc-svg\' attr')
}

@@ -26,0 +26,0 @@ }

@@ -8,3 +8,3 @@ const path = require('path')

output: {
filename: 'svg.js',
filename: 'cc-svg.js',
path: path.join(__dirname, "dist"),

@@ -11,0 +11,0 @@ library: name

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc