Skip to content

How to build JS in a separate process without rails/webpack fighting? #1053

Answered by wwahammy
BenSturmfels asked this question in Q&A
Discussion options

You must be logged in to vote

Generally, you wouldn't want to tell Rails not to build the Javascript in development. You can run bin/webpack to prebuild it though and, if none of the source files have changed, it probably would just pass the built assets through to the end-user.

The advice on using webpack --watch is out of date.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BenSturmfels
Comment options

Answer selected by BenSturmfels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants