Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle missing image "src" properties
- Loading branch information
1 parent
9c27efe
commit 89131ee
Showing
5 changed files
with
35 additions
and
1 deletion.
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
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 @@ | ||
module.exports = 'Error: Missing image "src" property in Web App Manifest'; |
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 @@ | ||
require('./manifest.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,9 @@ | ||
{ | ||
"name": "Missing Src", | ||
"icons": [ | ||
{ | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
} | ||
] | ||
} |
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,19 @@ | ||
module.exports = { | ||
entry: { | ||
main: __dirname + '/index.js' | ||
}, | ||
|
||
output: { | ||
filename: 'index.js', | ||
path: __dirname + '/actual-output' | ||
}, | ||
|
||
module: { | ||
loaders: [ | ||
{ | ||
test: /manifest.json$/, | ||
loader: 'file?name=manifest.json!../../../index.js' | ||
} | ||
] | ||
} | ||
}; |