Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpacker not respecting configuration #2340

Closed
coding-bunny opened this issue Oct 30, 2019 · 0 comments · Fixed by #2341
Closed

Webpacker not respecting configuration #2340

coding-bunny opened this issue Oct 30, 2019 · 0 comments · Fixed by #2341
Labels

Comments

@coding-bunny
Copy link
Contributor

Since #1395 got closed, continuing the discussion here because this problem needs to be fixed.

With the change introduced in d8dd446 , running rake assets:precompile breaks our CI since it always loads the config/webpack/production.js instead of the test.js file, causing the CI to error out since the code in that file does not have the required ENV variables available.

Explicitly setting NODE_ENV=test or RAILS_ENV=test has no bearing whatsoever on webpacker.
The only way we can currently get our assets compiled is by running RAILS_ENV=test NODE_ENV=test ./bin/webpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants