'修改ico图标'
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import path from "path";
|
||||
// const { GenerateSW } = require("workbox-webpack-plugin");
|
||||
import favicon from './images/planet.ico';
|
||||
|
||||
const WebpackObfuscator = require("webpack-obfuscator");
|
||||
const config = {
|
||||
@@ -127,7 +128,7 @@ const config = {
|
||||
allowedHosts: ["nomadro.com", "localhost", ".nomadro.com","hackrobot.cn",".hackrobot.cn"], // 允许所有 *.nomadyt.com 子域访问
|
||||
},
|
||||
htmlPluginOption: {
|
||||
favicon: path.resolve(__dirname, "..", "src", "images", "dgnomad.png"), // 同样处理 favicon 路径
|
||||
favicon: path.resolve(__dirname, "..", "src", "images", "planet.ico"), // 同样处理 favicon 路径
|
||||
meta: {
|
||||
"cache-control": "no-cache, no-store, must-revalidate",
|
||||
pragma: "no-cache",
|
||||
|
||||
BIN
src/images/planet.ico
Normal file
BIN
src/images/planet.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
@@ -1,34 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
<meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-touch-fullscreen" content="yes">
|
||||
<meta name="format-detection" content="telephone=no,address=no">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="white">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
|
||||
<link rel="apple-touch-icon" href="/static/images/images/touxiang.png" />
|
||||
<!-- <link rel="apple-touch-icon" href="/static/images/images/youtube.svg" /> -->
|
||||
|
||||
<link
|
||||
rel="icon"
|
||||
sizes="192x192"
|
||||
href="/static/images/images/touxiang.png"
|
||||
|
||||
|
||||
/>
|
||||
<title>异度世界</title>
|
||||
<meta name="description" content="异度世界">
|
||||
<meta property="og:description" content="异度世界">
|
||||
<meta name="twitter:description" content="异度世界">
|
||||
<script><%= htmlWebpackPlugin.options.script %></script>
|
||||
<!-- 禁止缓存 -->
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||
<meta
|
||||
content="width=device-width,initial-scale=1,user-scalable=no"
|
||||
name="viewport"
|
||||
/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-touch-fullscreen" content="yes" />
|
||||
<meta name="format-detection" content="telephone=no,address=no" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="white" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<!-- webpack配置favicon -->
|
||||
<link rel="apple-touch-icon" href="/static/images/planet.ico" />
|
||||
<link rel="icon" sizes="192x192" href="/static/images/planet.ico" />
|
||||
<title>异度星球</title>
|
||||
<meta name="description" content="异度星球" />
|
||||
<meta property="og:description" content="异度星球" />
|
||||
<meta name="twitter:description" content="异度星球" />
|
||||
<script>
|
||||
<%= htmlWebpackPlugin.options.script %>
|
||||
</script>
|
||||
<!-- 禁止缓存 -->
|
||||
<meta
|
||||
http-equiv="Cache-Control"
|
||||
content="no-cache, no-store, must-revalidate"
|
||||
/>
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user