mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-08 06:13:53 -05:00
removing tile images (#3023)
This commit is contained in:
BIN
dist/tile-wide.png
vendored
BIN
dist/tile-wide.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB |
BIN
dist/tile.png
vendored
BIN
dist/tile.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB |
4
dist/webpack.common.js
vendored
4
dist/webpack.common.js
vendored
@@ -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
dist/webpack.config.dev.js
vendored
3
dist/webpack.config.dev.js
vendored
@@ -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: ['./'],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
|
||||
22
dist/webpack.config.prod.js
vendored
22
dist/webpack.config.prod.js
vendored
@@ -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' },
|
||||
],
|
||||
})
|
||||
}),
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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 |
BIN
src/tile.png
BIN
src/tile.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB |
@@ -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' },
|
||||
],
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -41,8 +41,6 @@ const expectedFilesInDistDir = [
|
||||
'LICENSE.txt',
|
||||
'robots.txt',
|
||||
'site.webmanifest',
|
||||
'tile-wide.png',
|
||||
'tile.png',
|
||||
];
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
Reference in New Issue
Block a user