Skip to content

Instantly share code, notes, and snippets.

@davehax
Created March 27, 2018 03:28
Show Gist options
  • Save davehax/0633b002f43a79d9ee04b1a3cef72380 to your computer and use it in GitHub Desktop.
Save davehax/0633b002f43a79d9ee04b1a3cef72380 to your computer and use it in GitHub Desktop.
// webpack.config.js example
var OfflinePlugin = require('offline-plugin');
module.exports = {
// ...
plugins: [
// ... other plugins
// it's always better if OfflinePlugin is the last plugin added
new OfflinePlugin()
]
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment