如何确定已安装的webpack版本 [英] How to determine the installed webpack version

查看:101
本文介绍了如何确定已安装的webpack版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

特别是在从webpack v1过渡到v2期间,以编程方式确定 webpack 版本的内容非常重要。安装,但我似乎找不到合适的API。

Especially during the transition from webpack v1 to v2, it would be important to programmatically determine what webpack version is installed, but I cannot seem to find the appropriate API.

推荐答案

webpack 4现在提供了一个可以使用的版本属性!

webpack 4 now offers a version property that can be used!

这篇关于如何确定已安装的webpack版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆