import OfflinePlugin from 'offline-plugin'

export default {
  name: 'offline',
  configure({ offlineOptions }) {
    // offlineOptions is a valid offline-plugin config object
    // See: https://www.npmjs.com/package/offline-plugin
    return {
      plugins: [
        new OfflinePlugin(offlineOptions)
      ]
    }
  }
}

@@ -86,16 +86,25 @@
 figure(%7B
+ offline,
  offline
@@ -250,15 +250,19 @@
 urn 
-%7B%0A     
+offline ? %7B
  plu
@@ -272,17 +272,8 @@
 s: %5B
-%0A        
 new 
@@ -305,21 +305,15 @@
 ons)
-%0A      %5D%0A    
+%5D %7D : %7B
 %7D%0A  

disable offline plugin if falsey