Nuxt/examples/offline-nuxt/plugins/init-offline.js
2017-03-12 05:25:01 +05:30

4 lines
118 B
JavaScript

if (process.BROWSER_BUILD && process.env.NODE_ENV === 'production') {
require('offline-plugin/runtime').install()
}