Skip to content

Commit

Permalink
removing tile images (#3023)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblarsen committed Sep 9, 2023
1 parent 91a1249 commit b86d1ae
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 27 deletions.
Binary file removed dist/tile-wide.png
Binary file not shown.
Binary file removed dist/tile.png
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const path = require('path');
module.exports = {
entry: {
app: './js/app.js',
},
},
output: {
path: path.resolve(__dirname, 'dist'),
clean: true,
filename: './js/app.js',
},
};
};
3 changes: 0 additions & 3 deletions dist/webpack.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');


module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
Expand All @@ -12,5 +11,3 @@ module.exports = merge(common, {
static: ['./'],
},
});


22 changes: 10 additions & 12 deletions dist/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');

module.exports = merge(common, {
mode: 'production',
plugins: [
new HtmlWebpackPlugin({
template: './index.html'
template: './index.html',
}),
new CopyPlugin({
patterns: [
{ from: 'img', to: 'img' },
{ from: 'css', to: 'css' },
{ from: 'js/vendor', to: 'js/vendor' },
{ from: 'icon.svg', to: 'icon.svg'},
{ from: 'favicon.ico', to: 'favicon.ico'},
{ from: 'tile-wide.png', to: 'tile-wide.png'},
{ from: 'robots.txt', to: 'robots.txt'},
{ from: 'icon.png', to: 'icon.png'},
{ from: '404.html', to: '404.html'},
{ from: 'site.webmanifest', to: 'site.webmanifest'},
{ from: 'tile.png', to: 'tile.png'}
{ from: 'icon.svg', to: 'icon.svg' },
{ from: 'favicon.ico', to: 'favicon.ico' },
{ from: 'robots.txt', to: 'robots.txt' },
{ from: 'icon.png', to: 'icon.png' },
{ from: '404.html', to: '404.html' },
{ from: 'site.webmanifest', to: 'site.webmanifest' },
],
})
}),
],
});
});
7 changes: 1 addition & 6 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ A basic HTML5 Boilerplate site initially looks something like this:
├── package.json
├── robots.txt
├── site.webmanifest
├── tile.png
├── tile-wide.png
└── webpack.common.js
└── webpack.config.dev.js
└── webpack.config.prod.js
Expand Down Expand Up @@ -102,8 +100,7 @@ Edit this file to include any pages you need hidden from search engines.

### Icons

Replace the default `favicon.ico`, `tile.png`, `tile-wide.png` and Apple Touch
Icon with your own.
Replace the default `favicon.ico` and Apple Touch Icon with your own.

If you want to use different Apple Touch Icons for different resolutions please
refer to the [according documentation](extend.md#apple-touch-icons).
Expand Down Expand Up @@ -159,8 +156,6 @@ It copies the following files and folders to the dist folder:
- index.html
- robots.txt
- site.webmanifest
- tile.png
- tile-wide.png

`js/vendor` is copied over in order to allow you to use unprocessed JS files
in addition to the files bundled based on the project's entry point `app.js.`
Binary file removed src/tile-wide.png
Binary file not shown.
Binary file removed src/tile.png
Binary file not shown.
2 changes: 0 additions & 2 deletions src/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ module.exports = merge(common, {
{ from: 'js/vendor', to: 'js/vendor' },
{ from: 'icon.svg', to: 'icon.svg' },
{ from: 'favicon.ico', to: 'favicon.ico' },
{ from: 'tile-wide.png', to: 'tile-wide.png' },
{ from: 'robots.txt', to: 'robots.txt' },
{ from: 'icon.png', to: 'icon.png' },
{ from: '404.html', to: '404.html' },
{ from: 'site.webmanifest', to: 'site.webmanifest' },
{ from: 'tile.png', to: 'tile.png' },
],
}),
],
Expand Down
2 changes: 0 additions & 2 deletions test/file_existence.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ const expectedFilesInDistDir = [
'LICENSE.txt',
'robots.txt',
'site.webmanifest',
'tile-wide.png',
'tile.png',
];

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit b86d1ae

Please sign in to comment.