From f6842e6f2e128c1c7ec39efd8a91f7dee6b1f990 Mon Sep 17 00:00:00 2001 From: justinvdm Date: Thu, 25 Feb 2016 17:36:27 +0200 Subject: [PATCH] Fix webpack aliasing for config module --- webpack.base.config.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/webpack.base.config.js b/webpack.base.config.js index ea02511e6..e04857e5e 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -36,6 +36,7 @@ module.exports = function exports() { entry: entryPoints('./wagtail/**/static_src/**/app/*.entry.js'), resolve: { alias: { + config: path.resolve(CLIENT_DIR, 'config'), components: path.resolve(CLIENT_DIR, 'components') } }, @@ -55,21 +56,11 @@ module.exports = function exports() { loaders: [ { test: /\.js$/, - loader: 'babel', - exclude: /node_modules/, - include: [ - CLIENT_DIR, - path.resolve(__dirname, 'wagtail') - ] + loader: 'babel' }, { test: /\.jsx$/, - loader: 'babel', - exclude: /node_modules/, - include: [ - CLIENT_DIR, - path.resolve(__dirname, 'wagtail') - ] + loader: 'babel' } ] }