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 = {
entry: {
app: './js/app.js',
},
},
output: {
path: path.resolve(__dirname, 'dist'),
clean: true,
filename: './js/app.js',
},
};
};

View File

@@ -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',
@@ -12,5 +11,3 @@ module.exports = merge(common, {
static: ['./'],
},
});

View File

@@ -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' },
],
})
}),
],
});
});

View File

@@ -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
@@ -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).
@@ -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 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: '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' },
],
}),
],

View File

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