Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Move @neutrinojs/env into the web preset & support default values #983
The argument passed to the plugin is now correctly wrapped in an array (as expected by
The options change is non-breaking, however the removal of
Since `EnvironmentPlugin` doesn't require any non-webpack dependencies or complex configuration, it's simpler to inline the plugin directly in presets that use it (which is currently just the web preset). The argument passed to the plugin is now correctly wrapped in an array (as expected by `webpack-chain`), meaning the object form that allows setting defaults is now also supported: https://webpack.js.org/plugins/environment-plugin/#usage-with-default-values Closes #657.