feat: support version option (#23)
* feat: support version option * docs(README): added version option
This commit is contained in:
@@ -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}`
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user