Added webpack build config

This commit is contained in:
euvl
2016-11-14 15:46:35 +00:00
parent 0a1017bfc4
commit a13056c608
12 changed files with 102 additions and 56 deletions

View File

View File

@@ -1,22 +1,18 @@
<template>
<div id="app">
<img src="./assets/logo.png">
<button @click="showModal">Show modal</button>
<h1>Test page</h1>
<button @click="showModal('basic')">Show basic modal</button>
<transition name="fade">
<modal name="hello">Hello!</modal>
<modal name="basic">Hello! Im basic modal!</modal>
</transition>
</div>
</template>
<script>
import Hello from './components/Hello';
export default {
name: 'app',
methods: {
showModal() {
this.$modal.toggle('hello', false);
},
showModal(name) => this.$modal.show(name),
},
};
</script>

View File

@@ -6,6 +6,5 @@
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@@ -1,6 +1,6 @@
import Vue from 'vue';
import App from './App';
import VueModal from './VueModal/index';
import VueModal from '../src/index';
Vue.use(VueModal);