Webpack 5 Favicons generation
BIN
app/client/dist/icons/android-chrome-144x144.png
vendored
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
app/client/dist/icons/android-chrome-192x192.png
vendored
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
app/client/dist/icons/android-chrome-256x256.png
vendored
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
app/client/dist/icons/android-chrome-36x36.png
vendored
Normal file
After Width: | Height: | Size: 696 B |
BIN
app/client/dist/icons/android-chrome-384x384.png
vendored
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
app/client/dist/icons/android-chrome-48x48.png
vendored
Normal file
After Width: | Height: | Size: 891 B |
BIN
app/client/dist/icons/android-chrome-512x512.png
vendored
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
app/client/dist/icons/android-chrome-72x72.png
vendored
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/client/dist/icons/android-chrome-96x96.png
vendored
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
app/client/dist/icons/apple-touch-icon-1024x1024.png
vendored
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
app/client/dist/icons/apple-touch-icon-114x114.png
vendored
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
app/client/dist/icons/apple-touch-icon-120x120.png
vendored
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
app/client/dist/icons/apple-touch-icon-144x144.png
vendored
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
app/client/dist/icons/apple-touch-icon-152x152.png
vendored
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
app/client/dist/icons/apple-touch-icon-167x167.png
vendored
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
app/client/dist/icons/apple-touch-icon-180x180.png
vendored
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
app/client/dist/icons/apple-touch-icon-57x57.png
vendored
Normal file
After Width: | Height: | Size: 991 B |
BIN
app/client/dist/icons/apple-touch-icon-60x60.png
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
app/client/dist/icons/apple-touch-icon-72x72.png
vendored
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
app/client/dist/icons/apple-touch-icon-76x76.png
vendored
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/client/dist/icons/apple-touch-icon-precomposed.png
vendored
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
app/client/dist/icons/apple-touch-icon.png
vendored
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1125x2436.png
vendored
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1136x640.png
vendored
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1242x2208.png
vendored
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1242x2688.png
vendored
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1334x750.png
vendored
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1536x2048.png
vendored
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1620x2160.png
vendored
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1668x2224.png
vendored
Normal file
After Width: | Height: | Size: 125 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1668x2388.png
vendored
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-1792x828.png
vendored
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2048x1536.png
vendored
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2048x2732.png
vendored
Normal file
After Width: | Height: | Size: 174 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2160x1620.png
vendored
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2208x1242.png
vendored
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2224x1668.png
vendored
Normal file
After Width: | Height: | Size: 125 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2388x1668.png
vendored
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2436x1125.png
vendored
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2688x1242.png
vendored
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-2732x2048.png
vendored
Normal file
After Width: | Height: | Size: 174 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-640x1136.png
vendored
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-750x1334.png
vendored
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
app/client/dist/icons/apple-touch-startup-image-828x1792.png
vendored
Normal file
After Width: | Height: | Size: 38 KiB |
15
app/client/dist/icons/browserconfig.xml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square70x70logo src="/icons/mstile-70x70.png"/>
|
||||
<square150x150logo src="/icons/mstile-150x150.png"/>
|
||||
<wide310x150logo src="/icons/mstile-310x150.png"/>
|
||||
<square310x310logo src="/icons/mstile-310x310.png"/>
|
||||
<TileColor>#fff</TileColor>
|
||||
|
||||
</tile>
|
||||
|
||||
</msapplication>
|
||||
|
||||
</browserconfig>
|
BIN
app/client/dist/icons/coast-228x228.png
vendored
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
app/client/dist/icons/favicon-16x16.png
vendored
Normal file
After Width: | Height: | Size: 338 B |
BIN
app/client/dist/icons/favicon-32x32.png
vendored
Normal file
After Width: | Height: | Size: 669 B |
BIN
app/client/dist/icons/favicon-48x48.png
vendored
Normal file
After Width: | Height: | Size: 891 B |
BIN
app/client/dist/icons/favicon.ico
vendored
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
app/client/dist/icons/firefox_app_128x128.png
vendored
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
app/client/dist/icons/firefox_app_512x512.png
vendored
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
app/client/dist/icons/firefox_app_60x60.png
vendored
Normal file
After Width: | Height: | Size: 2.5 KiB |
59
app/client/dist/icons/manifest.json
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"name": "ss-webpack-boilerplate",
|
||||
"short_name": "ss-webpack-boilerplate",
|
||||
"description": "Lets you create SilverStripe faster",
|
||||
"dir": "auto",
|
||||
"lang": "en-US",
|
||||
"display": "standalone",
|
||||
"orientation": "any",
|
||||
"start_url": "/?homescreen=1",
|
||||
"background_color": "#fff",
|
||||
"theme_color": "#fff",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icons/android-chrome-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-256x256.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-384x384.png",
|
||||
"sizes": "384x384",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/icons/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
14
app/client/dist/icons/manifest.webapp
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": "2.0.2",
|
||||
"name": "ss-webpack-boilerplate",
|
||||
"description": "Lets you create SilverStripe faster",
|
||||
"icons": {
|
||||
"60": "/icons/firefox_app_60x60.png",
|
||||
"128": "/icons/firefox_app_128x128.png",
|
||||
"512": "/icons/firefox_app_512x512.png"
|
||||
},
|
||||
"developer": {
|
||||
"name": "Tony Air",
|
||||
"url": null
|
||||
}
|
||||
}
|
BIN
app/client/dist/icons/mstile-144x144.png
vendored
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
app/client/dist/icons/mstile-150x150.png
vendored
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
app/client/dist/icons/mstile-310x150.png
vendored
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
app/client/dist/icons/mstile-310x310.png
vendored
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
app/client/dist/icons/mstile-70x70.png
vendored
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/client/dist/icons/yandex-browser-50x50.png
vendored
Normal file
After Width: | Height: | Size: 941 B |
9
app/client/dist/icons/yandex-browser-manifest.json
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "2.0.2",
|
||||
"api_version": 1,
|
||||
"layout": {
|
||||
"logo": "/icons/yandex-browser-50x50.png",
|
||||
"color": "#fff",
|
||||
"show_title": true
|
||||
}
|
||||
}
|
23
app/client/dist/records.json
vendored
@ -31,6 +31,29 @@
|
||||
831
|
||||
]
|
||||
},
|
||||
"favicons-webpack-plugin": [
|
||||
{
|
||||
"chunks": {
|
||||
"byName": {
|
||||
"favicon.png": 561
|
||||
},
|
||||
"bySource": {
|
||||
"0 favicon.png": 561
|
||||
},
|
||||
"usedIds": [
|
||||
561
|
||||
]
|
||||
},
|
||||
"modules": {
|
||||
"byIdentifier": {
|
||||
"./node_modules/.pnpm/cache-loader@4.1.0_webpack@5.11.0/node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"/mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.cache/favicons-webpack-plugin\"}!./node_modules/.pnpm/github.com/jantimon/favicons-webpack-plugin@ee2818afa97c4b4bf1c6f919a403e56203e26606_webpack@5.11.0/node_modules/favicons-webpack-plugin/src/loader.js?{\"prefix\":\"/icons/\",\"options\":{\"appName\":\"ss-webpack-boilerplate\",\"appDescription\":\"Lets you create SilverStripe faster\",\"version\":\"2.0.2\",\"developerName\":\"Tony Air\"},\"path\":\"app/client/dist\"}!./app/client/src/favicon.png": 407
|
||||
},
|
||||
"usedIds": [
|
||||
407
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"mini-css-extract-plugin /mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.pnpm/css-loader@5.0.1_webpack@5.11.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@3.1.2/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@10.1.0_node-sass@5.0.0+webpack@5.11.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./app/client/src/scss/_cms.scss": [
|
||||
{
|
||||
"chunks": {
|
||||
|
@ -11,6 +11,7 @@
|
||||
"php": ">=7.1.0",
|
||||
"ext-json": "*",
|
||||
"silverstripe/recipe-cms": "^4",
|
||||
"silverstripe/recipe-plugin": "^1.5",
|
||||
"wilr/silverstripe-googlesitemaps": "*",
|
||||
"silverstripe/userforms": "*",
|
||||
"undefinedoffset/sortablegridfield": "*",
|
||||
|
@ -31,8 +31,8 @@
|
||||
"ie>=11"
|
||||
],
|
||||
"dependencies": {
|
||||
"@a2nt/meta-lightbox": "^2.7.1",
|
||||
"@a2nt/ss-bootstrap-ui-webpack-boilerplate": "^2.7.0",
|
||||
"@a2nt/meta-lightbox": "^2.4.0",
|
||||
"@a2nt/ss-bootstrap-ui-webpack-boilerplate": "^2.6.3",
|
||||
"aos": "^2.3.4",
|
||||
"bootbox": "^5.5.2",
|
||||
"bootstrap": "^4.5.3",
|
||||
@ -89,7 +89,7 @@
|
||||
"exports-loader": "^1.1.1",
|
||||
"fast-levenshtein": "^3.0.0",
|
||||
"fastest-levenshtein": "^1.0.12",
|
||||
"favicons-webpack-plugin": "^4.2.0",
|
||||
"favicons-webpack-plugin": "github:jantimon/favicons-webpack-plugin#benkostr-webpack-5",
|
||||
"file-loader": "^6.2.0",
|
||||
"font-awesome": "^4.7.0",
|
||||
"hoist-non-react-statics": "^3.3.2",
|
||||
@ -126,7 +126,7 @@
|
||||
"terser-webpack-plugin": "^5.0.3",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.11.0",
|
||||
"webpack-cli": "^4.3.0",
|
||||
"webpack-cli": "^4.2.0",
|
||||
"webpack-dev-server": "^4.0.0-beta.0",
|
||||
"webpack-manifest-plugin": "^3.0.0",
|
||||
"webpack-merge": "^5.7.3"
|
||||
|
@ -12,7 +12,7 @@ const common = require('./webpack.config.common.js');
|
||||
const filesystem = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
//const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
|
||||
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
|
||||
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
@ -119,72 +119,72 @@ let plugins = [
|
||||
}),
|
||||
];
|
||||
|
||||
/*const faviconPath = path.join(__dirname, conf.APPDIR, conf.SRC, 'favicon.png');
|
||||
const faviconPath = path.join(__dirname, conf.APPDIR, conf.SRC, 'favicon.png');
|
||||
if (filesystem.existsSync(faviconPath)) {
|
||||
plugins.push(
|
||||
new FaviconsWebpackPlugin({
|
||||
title: 'Webpack App',
|
||||
logo: faviconPath,
|
||||
prefix: '/icons/',
|
||||
emitStats: false,
|
||||
persistentCache: true,
|
||||
inject: false,
|
||||
statsFilename: path.join(
|
||||
conf.APPDIR,
|
||||
conf.DIST,
|
||||
'icons',
|
||||
'iconstats.json',
|
||||
),
|
||||
icons: {
|
||||
android: true,
|
||||
appleIcon: true,
|
||||
appleStartup: true,
|
||||
coast: true,
|
||||
favicons: true,
|
||||
firefox: true,
|
||||
opengraph: true,
|
||||
twitter: true,
|
||||
yandex: true,
|
||||
windows: true,
|
||||
},
|
||||
}),
|
||||
);
|
||||
plugins.push(
|
||||
new FaviconsWebpackPlugin({
|
||||
title: 'Webpack App',
|
||||
logo: faviconPath,
|
||||
prefix: '/icons/',
|
||||
emitStats: false,
|
||||
persistentCache: true,
|
||||
inject: false,
|
||||
statsFilename: path.join(
|
||||
conf.APPDIR,
|
||||
conf.DIST,
|
||||
'icons',
|
||||
'iconstats.json',
|
||||
),
|
||||
icons: {
|
||||
android: true,
|
||||
appleIcon: true,
|
||||
appleStartup: true,
|
||||
coast: true,
|
||||
favicons: true,
|
||||
firefox: true,
|
||||
opengraph: true,
|
||||
twitter: true,
|
||||
yandex: true,
|
||||
windows: true,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
// add themes favicons
|
||||
commonVariables.themes.forEach((theme) => {
|
||||
const faviconPath = path.join(__dirname, theme, conf.SRC, 'favicon.png');
|
||||
if (filesystem.existsSync(faviconPath)) {
|
||||
plugins.push(
|
||||
new FaviconsWebpackPlugin({
|
||||
title: 'Webpack App',
|
||||
logo: faviconPath,
|
||||
prefix: '/' + theme + '-icons/',
|
||||
emitStats: false,
|
||||
persistentCache: true,
|
||||
inject: false,
|
||||
statsFilename: path.join(
|
||||
conf.APPDIR,
|
||||
conf.DIST,
|
||||
theme + '-icons',
|
||||
'iconstats.json',
|
||||
),
|
||||
icons: {
|
||||
android: true,
|
||||
appleIcon: true,
|
||||
appleStartup: true,
|
||||
coast: true,
|
||||
favicons: true,
|
||||
firefox: true,
|
||||
opengraph: true,
|
||||
twitter: true,
|
||||
yandex: true,
|
||||
windows: true,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
});*/
|
||||
const faviconPath = path.join(__dirname, theme, conf.SRC, 'favicon.png');
|
||||
if (filesystem.existsSync(faviconPath)) {
|
||||
plugins.push(
|
||||
new FaviconsWebpackPlugin({
|
||||
title: 'Webpack App',
|
||||
logo: faviconPath,
|
||||
prefix: '/' + theme + '-icons/',
|
||||
emitStats: false,
|
||||
persistentCache: true,
|
||||
inject: false,
|
||||
statsFilename: path.join(
|
||||
conf.APPDIR,
|
||||
conf.DIST,
|
||||
theme + '-icons',
|
||||
'iconstats.json',
|
||||
),
|
||||
icons: {
|
||||
android: true,
|
||||
appleIcon: true,
|
||||
appleStartup: true,
|
||||
coast: true,
|
||||
favicons: true,
|
||||
firefox: true,
|
||||
opengraph: true,
|
||||
twitter: true,
|
||||
yandex: true,
|
||||
windows: true,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
const cfg = merge(common, {
|
||||
mode: 'production',
|
||||
|