// import swURL from 'file?name=sw.js!babel!./../sw'
//
// // Register Service Worker
// if ('serviceWorker' in navigator) {
//   window.addEventListener('load', function () {
//     // navigator.serviceWorker.register('/sw.js').then(function (registration) {
//     navigator.serviceWorker.register(swURL).then(function (registration) {
//       // Registration was successful
//       console.log('ServiceWorker registration successful with scope: ', registration.scope)
//     }).catch(function (err) {
//       // registration failed :(
//       console.log('ServiceWorker registration failed: ', err)
//     })
//   })
// } else {
//   console.log('Service worker not supported')
// }

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App }
})

import swURL from 'file?name=sw.js!babel!./sw' // eslint-disable-line

// Register Service Worker
// if ('serviceWorker' in navigator) {
//   window.addEventListener('load', function () {
//     navigator.serviceWorker.register(swURL).then(function (registration) {
//       // Registration was successful
//       console.log('ServiceWorker registration successful with scope: ', registration.scope)
//     }).catch(function (err) {
//       // registration failed :(
//       console.log('ServiceWorker registration failed: ', err)
//     })
//   })
// } else {
//   console.log('Service worker not supported')
// }

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App }
})

Disable Service Worker from registration