mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-08 00:51:10 +00:00
Fix webpack aliasing for config module
This commit is contained in:
parent
7207e31784
commit
f6842e6f2e
1 changed files with 3 additions and 12 deletions
|
|
@ -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'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue