From d243fd30dc91fffa0b40220ef215587d9011933b Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Tue, 18 Nov 2014 19:28:54 +0100 Subject: [PATCH] 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 --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 001e10f2c2..e810be13c2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -26,7 +26,7 @@ module.exports = { modulesDirectories: [ 'node_modules', 'vendor/assets/components' - ], + ].concat(pathConfig.pluginDirectories), alias: { 'locales': 'config/locales',