Open redolent opened 9 years ago
I had the same problem. Here's the solution I came up with:
require.hand-config.js
require.bower-paths.js
require.hand-config.js
and require.bower-paths.js
into require.config.js
This works because RequireJS allows require.config({ ... })
to be called multiple times. I've been using this approach for several months and haven't found any downsides yet.
We have a hand-written require config with a lot of comments. Wanted to know if there is interest in working on a version that doesn't touch the file except minimally.
There's a project someone already started on: https://github.com/xerona/bower-requirejs