问题
I want to use:
require.context('../images/', true, /\.(png|ico|svg|jpg|gif)$/)
but I get the following error:
Property context does not exist on type NodeRequire
回答1:
Just install the typings for webpack-env
npm i @types/webpack-env -D
来源:https://stackoverflow.com/questions/48935663/webpack-property-context-does-not-exist-on-type-noderequire