This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- "6" | ||
- "8" | ||
- "10" | ||
- "node" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
output/ |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
const path = require('path') | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
const WebpackPwaManifest = require('../../../dist') | ||
|
||
module.exports = { | ||
entry: path.join(__dirname, '../app.js'), | ||
output: { | ||
path: path.join(__dirname, '../output'), | ||
publicPath: '/', | ||
filename: '[name].[hash].bundle.js' | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
filename: 'index.html', | ||
minify: { | ||
minifyCSS: true, | ||
minifyJS: true, | ||
collapseWhitespace: true, | ||
collapseInlineTagWhitespace: true, | ||
preserveLineBreaks: false, | ||
removeAttributeQuotes: true, | ||
removeComments: true | ||
} | ||
}), | ||
new WebpackPwaManifest({ | ||
name: 'My Progressive Web App', | ||
short_name: 'MyPWA', | ||
description: 'My awesome Progressive Web App!', | ||
background_color: '#ffffff', | ||
orientation: 'omit', | ||
ios: true, | ||
icons: [ | ||
{ | ||
src: path.resolve('./tests/icon.png'), | ||
sizes: 512, | ||
destination: 'icons' | ||
}, | ||
{ | ||
src: path.resolve('./tests/icon.png'), | ||
size: 1024, | ||
destination: 'icons', | ||
ios: true | ||
}, | ||
{ | ||
src: path.resolve('./tests/icon.svg'), | ||
sizes: 512, | ||
destination: 'icons', | ||
color: '#ffffff' | ||
} | ||
] | ||
}) | ||
] | ||
} |
Binary file added
BIN
+69.7 KB
tests/issue-84/test/icons/icon_1024x1024.9e29ee0667fc45a8662544c71ddd52ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24 KB
tests/issue-84/test/icons/icon_512x512.7da9f7ef24c6ad5fe248e7f62d5593a5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
tests/issue-84/test/icons/icon_512x512.dd60b11e9762b6e25f6d4ce981a1eeae.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><head><meta charset=UTF-8><title>Webpack App</title><meta name=apple-mobile-web-app-title content="My Progressive Web App"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=default><link rel=apple-touch-icon sizes=1024x1024 href=/icons/icon_1024x1024.9e29ee0667fc45a8662544c71ddd52ad.png><link rel=manifest href=/manifest.9b54133b3a32babd39ea99e4fee8daa1.json><link rel=mask-icon href=/icons/icon_512x512.dd60b11e9762b6e25f6d4ce981a1eeae.svg color=#ffffff></head><body><script type=text/javascript src=/main.72d5eaca4af91e626344.bundle.js></script></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
tests/issue-84/test/manifest.9b54133b3a32babd39ea99e4fee8daa1.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"icons": [ | ||
{ | ||
"src": "/icons/icon_512x512.dd60b11e9762b6e25f6d4ce981a1eeae.svg", | ||
"sizes": "512x512", | ||
"type": "image/svg+xml" | ||
}, | ||
{ | ||
"src": "/icons/icon_1024x1024.9e29ee0667fc45a8662544c71ddd52ad.png", | ||
"sizes": "1024x1024", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/icons/icon_512x512.7da9f7ef24c6ad5fe248e7f62d5593a5.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"name": "My Progressive Web App", | ||
"short_name": "MyPWA", | ||
"display": "standalone", | ||
"start_url": ".", | ||
"description": "My awesome Progressive Web App!", | ||
"background_color": "#ffffff" | ||
} |
This file contains 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