Skip to content

Commit

Permalink
Enable progress for non-CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Aug 14, 2020
1 parent dae3b0d commit cebb218
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function optionalRequire(module, defaultReturn = undefined) {
const CONFIG = optionalRequire("./scripts/config", {});

const isProduction = process.env.NODE_ENV === "production";
const isCI = Boolean(process.env.CI);

const redashBackend = process.env.REDASH_BACKEND || "http://localhost:5000";
const staticPath = CONFIG.staticPath || "/static/";
Expand Down Expand Up @@ -78,6 +79,7 @@ const config = {
}
},
plugins: [
!isCI && new webpack.ProgressPlugin(),
// bundle only default `moment` locale (`en`)
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en/),
new HtmlWebpackPlugin({
Expand Down

0 comments on commit cebb218

Please sign in to comment.