You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
I don't want to run open-browser-webpack-plugin for each webpack execution, just for webpack-dev-server. For now, I concatenated the function for webpack.config.js plugins array
that checks process.env.NODE_ENV and conditionally returns the array item with open-browser-webpack-plugin plugin, but it's quite tricky and not very handy.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In many other webpack plugins I can control whether I want or not to run the plugin, eg:
I don't want to run
open-browser-webpack-plugin
for eachwebpack
execution, just forwebpack-dev-server
. For now, I concatenated the function for webpack.config.jsplugins
arraythat checks
process.env.NODE_ENV
and conditionally returns the array item withopen-browser-webpack-plugin
plugin, but it's quite tricky and not very handy.The text was updated successfully, but these errors were encountered: