mirror of
https://github.com/KevinMidboe/vue-chartjs.git
synced 2025-10-29 18:00:20 +00:00
Refactor: Don't include package.json into dist files
Instead of including package.json file into the build files. Use webpacks DefinePlugin to define a global lib version.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import mixins from './mixins/index.js'
|
||||
import npmCfg from '../package.json'
|
||||
|
||||
import {
|
||||
Bar,
|
||||
HorizontalBar,
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
} from './BaseCharts'
|
||||
|
||||
const VueCharts = {
|
||||
version: npmCfg.version,
|
||||
version: LIB_VERSION,
|
||||
Bar,
|
||||
HorizontalBar,
|
||||
Doughnut,
|
||||
|
||||
Reference in New Issue
Block a user