You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/config/webpack
ThibG 7fa4144d48 Fix building assets in test environment (#8691)
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
7 years ago
..
loaders Upgrade webpack to version v4.x (#6655) 7 years ago
configuration.js Fix building assets in test environment (#8691) 7 years ago
development.js Upgrade webpack to version v4.x (#6655) 7 years ago
generateLocalePacks.js Add quotes ESLint rules (#3602) 8 years ago
production.js Rename S3_CLOUDFRONT_HOST to S3_ALIAS_HOST. (#8423) 7 years ago
shared.js Upgrade webpack to version v4.x (#6655) 7 years ago
test.js Upgrade webpack to version v4.x (#6655) 7 years ago
translationRunner.js Fix RFC 5646 Regular Expression (#6190) 7 years ago