Add Rails plugin dirs to Webpack modulesDirectories

This should allow Webpack to bundle assets from Rails plugins/gems,
as if they were npm modules or Bower components, but without us
having to add an entry to core's `package.json`/`bower.json`.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2193/head
Alex Coles 10 years ago
parent 29b60dfcaa
commit d243fd30dc
  1. 2
      webpack.config.js

@ -26,7 +26,7 @@ module.exports = {
modulesDirectories: [ modulesDirectories: [
'node_modules', 'node_modules',
'vendor/assets/components' 'vendor/assets/components'
], ].concat(pathConfig.pluginDirectories),
alias: { alias: {
'locales': 'config/locales', 'locales': 'config/locales',

Loading…
Cancel
Save