Skip to content
Snippets Groups Projects
Commit 532db5bb authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Merge pull request #2847 from metabase/disable-flow

Disable FlowStatusWebpackPlugin by default
parents 2dd0f42e 320fb815
No related branches found
No related tags found
No related merge requests found
......@@ -235,15 +235,15 @@ if (NODE_ENV === "development" || NODE_ENV === "hot") {
config.resolve.alias[name] = unminified;
}
}
}
config.plugins.push(new FlowStatusWebpackPlugin())
if (process.env.ENABLE_FLOW) {
config.plugins.push(new FlowStatusWebpackPlugin());
}
if (NODE_ENV === "hot" || isWatching) {
// enable "cheap" source maps in hot or watch mode since re-build speed overhead is < 1 second
config.devtool = "eval-cheap-module-source-map";
}
if (NODE_ENV === "production") {
} else if (NODE_ENV === "production") {
config.devtool = "source-map";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment