feat: support version option (#23)

* feat: support version option

* docs(README): added version option
This commit is contained in:
Sail
2019-04-01 17:47:17 +08:00
committed by Ivin Wu
parent 68927d274b
commit 0df7cb6bb3
9 changed files with 64 additions and 24 deletions

View File

@@ -26,9 +26,12 @@ module.exports = [
libraryExport: "default"
},
plugins: [
new webpack.DefinePlugin({
__VERSION__: JSON.stringify(pk.version)
}),
new webpack.BannerPlugin({
banner: `weRequest ${pk.version}\n${pk.homepage}`
})
})
]
},
{
@@ -55,6 +58,9 @@ module.exports = [
},
devtool: "inline-source-map",
plugins: [
new webpack.DefinePlugin({
__VERSION__: JSON.stringify(pk.version)
}),
new webpack.BannerPlugin({
banner: `weRequest ${pk.version}\n${pk.homepage}`
})