Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 230a43c

Browse files
committed
Add warning against using config.assets.precompile
1 parent 5b1b5cc commit 230a43c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ This will generate a script tag like so:
186186
<script data-main="/assets/page1.js" data-foo="..." data-bar="..." src="/assets/require.js"></script>
187187
```
188188

189+
## Troubleshooting
190+
191+
### Avoid `config.assets.precompile`
192+
193+
Don't set `config.assets.precompile` to reference any of your AMD module code.
194+
Avoid it altogether, except to reference non-AMD code that you're loading via
195+
javascript_include_tag, and which is **never** referenced by the AMD codebase.
196+
189197
## Using AMD libraries
190198

191199
I currently recommend placing your AMD libraries into `vendor/assets/javascripts`. The needs of a few specific libraries are discussed below.

0 commit comments

Comments
 (0)