Skip to content

Commit

Permalink
more warnings about minified src
Browse files Browse the repository at this point in the history
  • Loading branch information
samthor committed May 25, 2019
1 parent 82e76eb commit c1a96f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PWACompat is a library that brings the [Web App Manifest](https://developers.goo
This includes creating splash screens for Mobile Safari, and supporting IE/Edge's Pinned Sites feature.

So, if you've created a `manifest.webmanifest` but want to have wide support everywhere else—through legacy HTML tags for icons and theming—look no further.
Just include this script (or [bundle/serve it yourself](https://npmjs.com/package/pwacompat)) in your page:
Just include the minified script `pwacompat.min.js` (or [bundle/serve it yourself](https://npmjs.com/package/pwacompat)) in your page:

```html
<link rel="manifest" href="manifest.webmanifest" />
Expand Down
5 changes: 4 additions & 1 deletion pwacompat.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@

'use strict';

// backtick string will crash IE11 etc and tell users to use minified version
// WARNING
// Don't use this file directly in production! Please include `pwacompat.min.js`!
// WARNING
function unused() {
// compiled out, but crashes IE11 early rather than within the code
`Please don't use this file directly: include pwacompat.min.js instead!`;
}

Expand Down

0 comments on commit c1a96f2

Please sign in to comment.