Skip to content

Code Chunking with React Rails

Greg Myers edited this page Nov 6, 2017 · 1 revision

From discussion #727-issue-230686783

Untested: If you want code chunking, you can pass false to require.context, which will stop webpack from requiring all subdirectories automatically.

componentRequireContext = require.context("components", false)