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:
Nick Nissen
2018-02-05 13:40:04 +01:00
parent ebcab9f2f8
commit bdeac75422
3 changed files with 13 additions and 3 deletions

View File

@@ -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,