removing tile images (#3023)

This commit is contained in:
Rob Larsen
2023-09-09 19:59:03 -04:00
committed by GitHub
parent 91a1249d84
commit b86d1ae39f
10 changed files with 13 additions and 27 deletions

BIN
dist/tile-wide.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
dist/tile.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -3,10 +3,10 @@ const path = require('path');
module.exports = { module.exports = {
entry: { entry: {
app: './js/app.js', app: './js/app.js',
}, },
output: { output: {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
clean: true, clean: true,
filename: './js/app.js', filename: './js/app.js',
}, },
}; };

View File

@@ -1,7 +1,6 @@
const { merge } = require('webpack-merge'); const { merge } = require('webpack-merge');
const common = require('./webpack.common.js'); const common = require('./webpack.common.js');
module.exports = merge(common, { module.exports = merge(common, {
mode: 'development', mode: 'development',
devtool: 'inline-source-map', devtool: 'inline-source-map',
@@ -12,5 +11,3 @@ module.exports = merge(common, {
static: ['./'], static: ['./'],
}, },
}); });

View File

@@ -1,28 +1,26 @@
const { merge } = require('webpack-merge'); const { merge } = require('webpack-merge');
const common = require('./webpack.common.js'); const common = require('./webpack.common.js');
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin');
module.exports = merge(common, { module.exports = merge(common, {
mode: 'production', mode: 'production',
plugins: [ plugins: [
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: './index.html' template: './index.html',
}), }),
new CopyPlugin({ new CopyPlugin({
patterns: [ patterns: [
{ from: 'img', to: 'img' }, { from: 'img', to: 'img' },
{ from: 'css', to: 'css' }, { from: 'css', to: 'css' },
{ from: 'js/vendor', to: 'js/vendor' }, { from: 'js/vendor', to: 'js/vendor' },
{ from: 'icon.svg', to: 'icon.svg'}, { from: 'icon.svg', to: 'icon.svg' },
{ from: 'favicon.ico', to: 'favicon.ico'}, { from: 'favicon.ico', to: 'favicon.ico' },
{ from: 'tile-wide.png', to: 'tile-wide.png'}, { from: 'robots.txt', to: 'robots.txt' },
{ from: 'robots.txt', to: 'robots.txt'}, { from: 'icon.png', to: 'icon.png' },
{ from: 'icon.png', to: 'icon.png'}, { from: '404.html', to: '404.html' },
{ from: '404.html', to: '404.html'}, { from: 'site.webmanifest', to: 'site.webmanifest' },
{ from: 'site.webmanifest', to: 'site.webmanifest'},
{ from: 'tile.png', to: 'tile.png'}
], ],
}) }),
], ],
}); });

View File

@@ -46,8 +46,6 @@ A basic HTML5 Boilerplate site initially looks something like this:
├── package.json ├── package.json
├── robots.txt ├── robots.txt
├── site.webmanifest ├── site.webmanifest
├── tile.png
├── tile-wide.png
└── webpack.common.js └── webpack.common.js
└── webpack.config.dev.js └── webpack.config.dev.js
└── webpack.config.prod.js └── webpack.config.prod.js
@@ -102,8 +100,7 @@ Edit this file to include any pages you need hidden from search engines.
### Icons ### Icons
Replace the default `favicon.ico`, `tile.png`, `tile-wide.png` and Apple Touch Replace the default `favicon.ico` and Apple Touch Icon with your own.
Icon with your own.
If you want to use different Apple Touch Icons for different resolutions please If you want to use different Apple Touch Icons for different resolutions please
refer to the [according documentation](extend.md#apple-touch-icons). refer to the [according documentation](extend.md#apple-touch-icons).
@@ -159,8 +156,6 @@ It copies the following files and folders to the dist folder:
- index.html - index.html
- robots.txt - robots.txt
- site.webmanifest - site.webmanifest
- tile.png
- tile-wide.png
`js/vendor` is copied over in order to allow you to use unprocessed JS files `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.` in addition to the files bundled based on the project's entry point `app.js.`

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -16,12 +16,10 @@ module.exports = merge(common, {
{ from: 'js/vendor', to: 'js/vendor' }, { from: 'js/vendor', to: 'js/vendor' },
{ from: 'icon.svg', to: 'icon.svg' }, { from: 'icon.svg', to: 'icon.svg' },
{ from: 'favicon.ico', to: 'favicon.ico' }, { from: 'favicon.ico', to: 'favicon.ico' },
{ from: 'tile-wide.png', to: 'tile-wide.png' },
{ from: 'robots.txt', to: 'robots.txt' }, { from: 'robots.txt', to: 'robots.txt' },
{ from: 'icon.png', to: 'icon.png' }, { from: 'icon.png', to: 'icon.png' },
{ from: '404.html', to: '404.html' }, { from: '404.html', to: '404.html' },
{ from: 'site.webmanifest', to: 'site.webmanifest' }, { from: 'site.webmanifest', to: 'site.webmanifest' },
{ from: 'tile.png', to: 'tile.png' },
], ],
}), }),
], ],

View File

@@ -41,8 +41,6 @@ const expectedFilesInDistDir = [
'LICENSE.txt', 'LICENSE.txt',
'robots.txt', 'robots.txt',
'site.webmanifest', 'site.webmanifest',
'tile-wide.png',
'tile.png',
]; ];
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -