Fix webpack aliasing for config module

pull/2282/head
justinvdm 2016-02-25 17:36:27 +02:00
rodzic 7207e31784
commit f6842e6f2e
1 zmienionych plików z 3 dodań i 12 usunięć

Wyświetl plik

@ -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'
}
]
}