Skip to content

Commit

Permalink
Removed source maps from the e2e tests, also updated to a parallel ve…
Browse files Browse the repository at this point in the history
…rsion of uglifyJS
  • Loading branch information
ray-millward-tessella committed Sep 12, 2018
1 parent 1c182a8 commit b507625
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 6 deletions.
4 changes: 4 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const rewireUglifyjs = require('react-app-rewire-uglifyjs');

module.exports = function override(config, env) {
config.module.rules.push({
test: /\.worker\.js$/,
use: { loader: 'worker-loader' }
})

config = rewireUglifyjs(config);
return config;
}
96 changes: 91 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"server:dev": "nodemon ./server/test-malcolm-server.js",
"start": "npm run config:dev && concurrently \"npm run server:dev\" \"react-app-rewired start\"",
"ui-only": "npm run config:dev && react-app-rewired start",
"build:e2e": "npm run config:dev && cross-env REACT_APP_E2E=true react-app-rewired build",
"build:e2e": "npm run config:dev && cross-env GENERATE_SOURCEMAP=false REACT_APP_E2E=true react-app-rewired build",
"build": "react-app-rewired build && npm run config:prod",
"test": "react-app-rewired test --env=jsdom --coverage",
"test:watch": "react-app-rewired test --env=jsdom --watch",
Expand Down Expand Up @@ -118,6 +118,7 @@
"nodemon": "^1.17.4",
"prettier": "^1.12.1",
"q-i": "^2.0.1",
"react-app-rewire-uglifyjs": "^0.1.1",
"react-app-rewired": "^1.5.2",
"react-test-renderer": "^16.3.2",
"source-map-explorer": "^1.6.0",
Expand Down

0 comments on commit b507625

Please sign in to comment.