Skip to content

Commit

Permalink
feat: remove -[hash] from default prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocodutra authored and jantimon committed Aug 14, 2019
1 parent 428414a commit fc0eb3e
Show file tree
Hide file tree
Showing 259 changed files with 315 additions and 316 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ plugins: [
// Note: disabling caching may increase build times considerably
cache: '.wwp-cache',
// Prefix path for generated assets
prefix: 'assets-[hash]/',
prefix: 'assets/',
// Inject html links/metadata (requires html-webpack-plugin)
inject: true,

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = class FaviconsWebpackPlugin {

this.options = Object.assign({
cache: '.wwp-cache',
prefix: 'assets-[hash]/',
prefix: 'assets/',
favicons: {},
inject: true,
}, options);
Expand Down

This file was deleted.

This file was deleted.

15 changes: 15 additions & 0 deletions test/fixtures/expected/default/assets/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/assets/mstile-70x70.png"/>
<square150x150logo src="/assets/mstile-150x150.png"/>
<wide310x150logo src="/assets/mstile-310x150.png"/>
<square310x310logo src="/assets/mstile-310x310.png"/>
<TileColor>#fff</TileColor>

</tile>

</msapplication>

</browserconfig>
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@
"background_color": "#fff",
"icons": [
{
"src": "/custom/prefix/android-chrome-36x36.png",
"src": "/assets/android-chrome-36x36.png",
"sizes": "36x36",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-48x48.png",
"src": "/assets/android-chrome-48x48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-72x72.png",
"src": "/assets/android-chrome-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-96x96.png",
"src": "/assets/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-144x144.png",
"src": "/assets/android-chrome-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-192x192.png",
"src": "/assets/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-256x256.png",
"src": "/assets/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-384x384.png",
"src": "/assets/android-chrome-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "/custom/prefix/android-chrome-512x512.png",
"src": "/assets/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
Expand Down
14 changes: 14 additions & 0 deletions test/fixtures/expected/default/assets/manifest.webapp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "1.0",
"name": null,
"description": null,
"icons": {
"60": "/assets/firefox_app_60x60.png",
"128": "/assets/firefox_app_128x128.png",
"512": "/assets/firefox_app_512x512.png"
},
"developer": {
"name": null,
"url": null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "1.0",
"api_version": 1,
"layout": {
"logo": "/custom/prefix/yandex-browser-50x50.png",
"logo": "/assets/yandex-browser-50x50.png",
"color": "#fff",
"show_title": true
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions test/fixtures/expected/generate-html/index.html

This file was deleted.

15 changes: 15 additions & 0 deletions test/fixtures/expected/html/assets/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/assets/mstile-70x70.png"/>
<square150x150logo src="/assets/mstile-150x150.png"/>
<wide310x150logo src="/assets/mstile-310x150.png"/>
<square310x310logo src="/assets/mstile-310x310.png"/>
<TileColor>#fff</TileColor>

</tile>

</msapplication>

</browserconfig>
Loading

0 comments on commit fc0eb3e

Please sign in to comment.