From 10b9c76aaeb8e38a4bc61444caa509355702dad4 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 19 Dec 2019 21:29:58 -0800 Subject: [PATCH] Don't try to offer Webamp as a PWA It was fun to get working, but now: Keep it simple stupid. --- demo/config/webpack.common.js | 34 ----- demo/index.html | 29 +--- demo/js/index.js | 7 - package.json | 1 - yarn.lock | 243 +++++----------------------------- 5 files changed, 31 insertions(+), 283 deletions(-) diff --git a/demo/config/webpack.common.js b/demo/config/webpack.common.js index 32b465d2..1916d66a 100644 --- a/demo/config/webpack.common.js +++ b/demo/config/webpack.common.js @@ -1,6 +1,5 @@ const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); -const WebpackPwaManifest = require("webpack-pwa-manifest"); const HtmlWebpackInlineSVGPlugin = require("html-webpack-inline-svg-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); @@ -70,39 +69,6 @@ module.exports = { template: "../modern/index.html", chunks: ["modern"], }), - // Automatically generates the manifest.json file inside the built - // directory, and injects a tag into the gererated index.html file - // it also, applies cache-busting for all the icons. - new WebpackPwaManifest({ - name: "Webamp", - short_name: "Webamp", // eslint-disable-line camelcase - description: "Winamp 2.9 reimplemented in HTML5 and JavaScript", - start_url: "./?utm_source=web_app_manifest", // eslint-disable-line camelcase - scope: "./", - display: "standalone", - theme_color: "#4b4b4b", // eslint-disable-line camelcase - background_color: "#ffffff", // eslint-disable-line camelcase - icons: [ - { - src: path.resolve("./demo/images/manifest/icon-192x192.png"), - sizes: "192x192", - type: "image/png", - }, - { - src: path.resolve("./demo/images/manifest/icon-512x512.png"), - sizes: "512x512", - type: "image/png", - }, - { - src: path.resolve("./demo/images/manifest/icon.svg"), - sizes: "513x513", - type: "image/svg+xml", - }, - ].map(icon => ({ - ...icon, - destination: path.join("images", "manifest"), - })), - }), new HtmlWebpackInlineSVGPlugin({ runPreEmit: true }), new CopyWebpackPlugin([ { diff --git a/demo/index.html b/demo/index.html index af151821..643e583b 100755 --- a/demo/index.html +++ b/demo/index.html @@ -14,39 +14,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - +