Skip to content

Instantly share code, notes, and snippets.

Created October 21, 2015 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9a95e4ebeb7f1868e03b to your computer and use it in GitHub Desktop.
Save anonymous/9a95e4ebeb7f1868e03b to your computer and use it in GitHub Desktop.
ERROR in OfflinePlugin: Something went wrong with ServiceWorker entry
"use strict";
var OfflinePlugin = require("offline-plugin");
var path = require("path");
module.exports = {
context: path.join(__dirname, "src"),
entry: {
app: "./index.js",
vendor: ["./Vendor1.js"]
},
output: {
path: path.join(__dirname, "dist"),
filename: "[name].[chunkhash].js",
chunkFilename: "[name].chunck.[chunkhash].js"
},
plugins: [
new OfflinePlugin()
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment