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