1
0
mirror of synced 2025-12-10 16:38:16 +08:00

Add: Version property

This commit is contained in:
surunzi
2017-09-27 15:35:52 +08:00
parent bbb69208c7
commit 1647df1378
3 changed files with 8 additions and 1 deletions

View File

@@ -8,6 +8,9 @@
"parserOptions": {
"sourceType": "module"
},
"globals": {
"VERSION": true
},
"rules": {
"quotes": [
"error",

View File

@@ -63,6 +63,9 @@ module.exports = {
]
},
plugins: [
new webpack.BannerPlugin(banner)
new webpack.BannerPlugin(banner),
new webpack.DefinePlugin({
VERSION: '\'' + pkg.version + '\''
})
]
};

View File

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