您的位置:首页 > Web前端 > Webpack

webpack 升级Getting error: configuration.resolve.extensions[0] should not be empty

2017-09-18 16:33 429 查看
webpack 升级后,extensions 数组中不能使用空字符串,需要使用* 代替。

否则报错

Getting error: configuration.resolve.extensions[0] should not be empty


参考文档:https://github.com/webpack/webpack/issues/3043

I am not sure that this is correct but after a series of trial an error I have tried using the * symbol instead of an empty string. This seems to have fixed the problem.So final syntax for the extensions attribute:

extensions: [‘*’, ‘js’, ‘ts’]

Hope this is the intended way to do it

�� 71 ❤️ 16
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐