Comparing version 1.0.0 to 1.0.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
279006
13
15
2