Add: Version property
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
"globals": {
|
||||
"VERSION": true
|
||||
},
|
||||
"rules": {
|
||||
"quotes": [
|
||||
"error",
|
||||
|
||||
@@ -63,6 +63,9 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new webpack.BannerPlugin(banner)
|
||||
new webpack.BannerPlugin(banner),
|
||||
new webpack.DefinePlugin({
|
||||
VERSION: '\'' + pkg.version + '\''
|
||||
})
|
||||
]
|
||||
};
|
||||
@@ -23,6 +23,7 @@ module.exports = {
|
||||
this._initSettings();
|
||||
this._initTools(tool);
|
||||
},
|
||||
version: VERSION,
|
||||
config, util,
|
||||
Console, Elements, Network, Sources, Resources, Info, Snippets, Features,
|
||||
get(name)
|
||||
|
||||
Reference in New Issue
Block a user