mastodon/config/webpack
Thibaut Girka 2df72d0697 Fix building assets in test environment
Webpacker (Ruby wrapper to webpack) uses RAILS_ENV-based environments while
the javascript configuration for webpack re-reads this configuration file using
the NODE_ENV environment variable. This means that when RAILS_ENV=test, running
“assets:precompile” compiled the production packs in “public/packs” while
webpacker expects them in “public/packs-test”. This causes Ruby to recompile
them on-the-fly, possibly leading to race conditions in parallel_tests.

This changes:
- Disables on-the-fly compilation in test environment
- Changes the javascript part to read the correct environment
2018-09-13 15:32:02 +02:00
..
loaders Merge branch 'master' into glitch-soc/merge-upstream 2018-07-16 14:50:42 +02:00
configuration.js Fix building assets in test environment 2018-09-13 15:32:02 +02:00
development.js Upgrade webpack to version v4.x (#6655) 2018-07-14 03:56:41 +02:00
generateLocalePacks.js
production.js Rename S3_CLOUDFRONT_HOST to S3_ALIAS_HOST. (#8423) 2018-08-25 13:27:08 +02:00
shared.js Reduce assets precompilation time by about 20% 2018-07-28 23:24:41 +02:00
test.js Upgrade webpack to version v4.x (#6655) 2018-07-14 03:56:41 +02:00
translationRunner.js