Created
March 27, 2018 03:28
-
-
Save davehax/0633b002f43a79d9ee04b1a3cef72380 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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