mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-09 22:58:12 -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 = {
|
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',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
3
dist/webpack.config.dev.js
vendored
3
dist/webpack.config.dev.js
vendored
@@ -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: ['./'],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
22
dist/webpack.config.prod.js
vendored
22
dist/webpack.config.prod.js
vendored
@@ -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'}
|
|
||||||
],
|
],
|
||||||
})
|
}),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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 |
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: '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' },
|
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ const expectedFilesInDistDir = [
|
|||||||
'LICENSE.txt',
|
'LICENSE.txt',
|
||||||
'robots.txt',
|
'robots.txt',
|
||||||
'site.webmanifest',
|
'site.webmanifest',
|
||||||
'tile-wide.png',
|
|
||||||
'tile.png',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|||||||
Reference in New Issue
Block a user