docs
docs copied to clipboard
EnvironmentPlugin - error
Hi! I have a problem with EnvironmentPlugin. I used webpack - 4.16.2 I try to use the plugin like this:
/...
new webpack.EnvironmentPlugin(['VT_ENV'])
/...
and I got the error:
TypeError: Cannot read property 'compilation' of undefined
at DefinePlugin.apply (...\node_modules\webpack\lib\DefinePlugin.js:93:17
Please, help me to fix it.
got the same error with version 4.16.5