Handle import aliases with babel instead of webpack

This commit is contained in:
Ken-Håvard Lieng 2017-06-21 09:03:24 +02:00
parent 86c5451edb
commit 1c199f40e2
7 changed files with 94 additions and 158 deletions

View file

@ -4,6 +4,17 @@
"react",
"stage-0"
],
"plugins": [
["module-resolver", {
"root": ["./src/js"],
"alias": {
"components": "./components",
"containers": "./containers",
"state": "./state",
"util": "./util"
}
}]
],
"env": {
"development": {
"plugins": ["react-hot-loader/babel"]