Skip to content

Commit

Permalink
only add cache plugins when config exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrifwald committed Nov 11, 2016
1 parent fac9b0c commit 92e02dd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ function getSWConfig() {
module.exports = function () {
return function (config) {
var swConfig = getSWConfig();

if (!swConfig.manifest) {
return mergeWebpackConfig(config, {});
}

var manifestConfig = assign({
background: "#FFFFFF",
logo: "./images/electrode.png",
Expand Down

0 comments on commit 92e02dd

Please sign in to comment.