vue-chart-js
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "vue-chart-js", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Chart.js for VueJs.", | ||
@@ -5,0 +5,0 @@ "author": "Kevin Ongko", |
@@ -8,6 +8,19 @@ # vue-chart-js | ||
[Chart.js](http://www.chartjs.org/) for [Vue](https://vuejs.org/). | ||
[Chart.js](http://www.chartjs.org/) wrapper component based on [Vue](https://vuejs.org/). | ||
**Works with Vue 2.*** | ||
## Installation | ||
### Install via CDN | ||
```html | ||
<script src="https://unpkg.com/chart.js"></script> | ||
<script src="https://unpkg.com/vue"></script> | ||
<script src="https://unpkg.com/vue-chart-js"></script> | ||
<script> | ||
Vue.use(VueChart.default) | ||
</script> | ||
``` | ||
### Install via NPM | ||
```sh | ||
@@ -17,3 +30,3 @@ $ npm install vue-chart-js --save | ||
### Install as Component | ||
#### Register as Component | ||
```js | ||
@@ -32,3 +45,3 @@ import Vue from 'vue' | ||
### Install as Plugin | ||
#### Register as Plugin | ||
```js | ||
@@ -41,12 +54,2 @@ import Vue from 'vue' | ||
### Install via CDN | ||
```html | ||
<script src="https://unpkg.com/vue"></script> | ||
<script src="https://unpkg.com/vue-chart-js"></script> | ||
<script> | ||
Vue.use(VueChart.default) | ||
</script> | ||
``` | ||
## Usage | ||
@@ -53,0 +56,0 @@ |
@@ -18,2 +18,5 @@ /* eslint-env node */ | ||
entry: './src/index.js', | ||
externals: { | ||
'chart.js': 'Chart' | ||
}, | ||
output: { | ||
@@ -24,3 +27,3 @@ path: path.resolve(__dirname, 'dist'), | ||
libraryTarget: 'umd', | ||
umdNamedDefine: true, | ||
umdNamedDefine: true | ||
}, | ||
@@ -31,3 +34,3 @@ module: { | ||
test: /\.vue$/, | ||
loader: 'vue-loader', | ||
loader: 'vue-loader' | ||
}, | ||
@@ -37,3 +40,3 @@ { | ||
loader: 'babel-loader', | ||
exclude: path.resolve(__dirname, 'node_modules'), | ||
exclude: path.resolve(__dirname, 'node_modules') | ||
}, | ||
@@ -43,8 +46,8 @@ ] | ||
plugins: [ | ||
new CleanWebpackPlugin(['./dist']), | ||
new CleanWebpackPlugin(['./dist']) | ||
], | ||
devtool: false, | ||
performance: { | ||
hints: false, | ||
hints: false | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
54
100
148868
1