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

@@ -15,5 +15,8 @@ module.exports = {
'arrow-parens': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
},
"globals": {
"LIB_VERSION": true
}
}