Skip to content

Commit f00be90

Browse files
committed
feat: Implement favicon generation and css minifying
1 parent 5ad248e commit f00be90

File tree

6 files changed

+1595
-13
lines changed

6 files changed

+1595
-13
lines changed

assets/ripixel.png

2.59 KB
Loading

favicon.config.js

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
module.exports = {
2+
input: "./assets/ripixel.png", // Required. override cli options.
3+
output: "./public", // Required. override cli options.
4+
template: "./templates/meta.html", // Default is the same as output, default name is meta.html.
5+
config: {
6+
path: "/", // Path for overriding default icons path. `string`
7+
appName: "ripixel", // Your application's name. `string`
8+
appDescription: "I'm James King, and I make things for the web", // Your application's description. `string`
9+
developerName: "James King", // Your (or your developer's) name. `string`
10+
developerURL: "https://www.ripixel.co.uk", // Your (or your developer's) URL. `string`
11+
dir: "auto", // Primary text direction for name, short_name, and description
12+
lang: "en-US", // Primary language for name and short_name
13+
background: "#FF9100", // Background colour for flattened icons. `string`
14+
theme_color: "#FF9100", // Theme color user for example in Android's task switcher. `string`
15+
appleStatusBarStyle: "black-translucent", // Style for Apple status bar: "black-translucent", "default", "black". `string`
16+
display: "standalone", // Preferred display mode: "fullscreen", "standalone", "minimal-ui" or "browser". `string`
17+
orientation: "any", // Default orientation: "any", "natural", "portrait" or "landscape". `string`
18+
scope: "/", // set of URLs that the browser considers within your app
19+
start_url: "/", // Start URL when launching the application from a device. `string`
20+
version: "1.0", // Your application's version string. `string`
21+
logging: false, // Print logs to console? `boolean`
22+
pixel_art: false, // Keeps pixels "sharp" when scaling up, for pixel art. Only supported in offline mode.
23+
loadManifestWithCredentials: false, // Browsers don't send cookies when fetching a manifest, enable this to fix that. `boolean`
24+
icons: {
25+
// Platform Options:
26+
// - offset - offset in percentage
27+
// - background:
28+
// * false - use default
29+
// * true - force use default, e.g. set background for Android icons
30+
// * color - set background for the specified icons
31+
// * mask - apply mask in order to create circle icon (applied by default for firefox). `boolean`
32+
// * overlayGlow - apply glow effect after mask has been applied (applied by default for firefox). `boolean`
33+
// * overlayShadow - apply drop shadow after mask has been applied .`boolean`
34+
//
35+
android: true, // Create Android homescreen icon. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
36+
appleIcon: true, // Create Apple touch icons. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
37+
appleStartup: true, // Create Apple startup images. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
38+
coast: true, // Create Opera Coast icon. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
39+
favicons: true, // Create regular favicons. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
40+
firefox: true, // Create Firefox OS icons. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
41+
windows: true, // Create Windows 8 tile icons. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
42+
yandex: true, // Create Yandex browser icon. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
43+
},
44+
},
45+
};

0 commit comments

Comments
 (0)