-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.js
32 lines (27 loc) · 863 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* COPYRIGHT AND LICENSE
* ---------------------
* Originally authored by Chris Fritz (c) 2018 -> present
* and licensed under the MIT License.
* (https://github.com/chrisvfritz/hello-vue-components)
*/
import Vue from 'vue'
import App from './App'
import VClickOutside from "v-click-outside";
import "../src/styles/styles.scss";
Vue.use(VClickOutside);
if (process.env.VUE_APP_E2E) {
if (window.__e2e_lib) {
Vue.use(require('hello-vue-components').default)
} else if (window.__e2e_components) {
Vue.component('HelloA', require('hello-vue-components.hello-a').default)
Vue.component('HelloB', require('hello-vue-components.hello-b').default)
}
} else {
// Install the plugin directly from src in development
Vue.use(require('../src').default)
}
Vue.config.productionTip = false
new Vue({
render: h => h(App)
}).$mount('#app')