From 219be61ea2d109581aee9d91421936ff4715c2c3 Mon Sep 17 00:00:00 2001 From: Ben Richter Date: Sat, 7 Apr 2018 21:21:52 +0200 Subject: [PATCH] Use index file for imports --- src/components/ListView/_ListView.vue | 2 +- src/components/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 src/components/index.js diff --git a/src/components/ListView/_ListView.vue b/src/components/ListView/_ListView.vue index 9ce0376..431442e 100644 --- a/src/components/ListView/_ListView.vue +++ b/src/components/ListView/_ListView.vue @@ -31,7 +31,7 @@ import sweetalert from 'sweetalert' import Todo from './Todo.vue' import CreateTodo from './TodoCreate.vue' - import TheHeader from 'src/components/TheHeader.vue' + import { TheHeader } from 'src/components' export default { components: { diff --git a/src/components/index.js b/src/components/index.js new file mode 100644 index 0000000..0cabf8a --- /dev/null +++ b/src/components/index.js @@ -0,0 +1 @@ +export { default as TheHeader } from './TheHeader.vue'