Skip to content

Commit

Permalink
fix: Avoid 502 for Playground in serverless: minimize babel
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Apr 15, 2019
1 parent 8dd699a commit f9d3171
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cubejs-playground/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function override(config, env) {
new TerserPlugin({
cache: true,
parallel: true,
chunkFilter: (chunk) => chunk.name.indexOf('babel') === -1 // && chunk.name.indexOf('vendors') === -1
// chunkFilter: (chunk) => chunk.name.indexOf('babel') === -1 // && chunk.name.indexOf('vendors') === -1
})
],
splitChunks: {
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build && rm -Rf ../cubejs-server-core/playground/** && cp -R build/ ../cubejs-server-core/playground/",
"build": "react-app-rewired --max-old-space-size=2048 build && rm -Rf ../cubejs-server-core/playground/** && cp -R build/ ../cubejs-server-core/playground/",
"test": "react-app-rewired test",
"eject": "react-scripts eject"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-server-core/core/DevServer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable global-require */
// Playground version: 0.7.1
// Playground version: 0.7.2
const fs = require('fs-extra');
const path = require('path');
const spawn = require('cross-spawn');
Expand Down

0 comments on commit f9d3171

Please sign in to comment.