Browse Source

Change favicon.ico icon introduction method and package compilation to increase version number (#3030)

pull/3/MERGE
break60 4 years ago committed by lenboo
parent
commit
0f708737a8
  1. 6
      dolphinscheduler-ui/build/config.js
  2. BIN
      dolphinscheduler-ui/favicon.ico
  3. 2
      dolphinscheduler-ui/src/view/home/index.html
  4. 2
      dolphinscheduler-ui/src/view/login/index.html

6
dolphinscheduler-ui/build/config.js

@ -95,7 +95,7 @@ const rewriterPath = p => {
}
}
}
const version = new Date().getTime();
const pages = glob.sync(['*/!(_*).html'], { cwd: viewDir }).map(p => {
let pagePath = `${path.join(viewDir, p)}`
let newPagePath = rewriterPath(pagePath)
@ -109,7 +109,9 @@ const pages = glob.sync(['*/!(_*).html'], { cwd: viewDir }).map(p => {
filename: newPagePath || path.join('view', p),
template: `${path.join('src/view', p)}`,
cache: true,
favicon:'./favicon.ico',
inject: true,
hash: version,
chunks: chunks,
minify: minifierConfig
})
@ -120,7 +122,7 @@ const baseConfig = {
output: {
path: distDir,
publicPath: '/',
filename: 'js/[name].[chunkhash:7].js'
filename: 'js/[name].[chunkhash:7]'+version+'.js'
},
module: {
rules: [

BIN
dolphinscheduler-ui/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

2
dolphinscheduler-ui/src/view/home/index.html

@ -33,7 +33,7 @@
<meta name="theme-color" content="#4a8dee">
<meta name="msapplication-navbutton-color" content="#4a8dee">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<link rel="shortcut icon" href="<%= PUBLIC_PATH %>/images/favicon.ico"/>
<title>DolphinScheduler</title>
</head>
<body>

2
dolphinscheduler-ui/src/view/login/index.html

@ -31,7 +31,7 @@
<meta name="theme-color" content="#4a8dee">
<meta name="msapplication-navbutton-color" content="#4a8dee">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<link rel="shortcut icon" href="<%= PUBLIC_PATH %>/images/favicon.ico"/>
<title>Login - DolphinScheduler</title>
</head>
<body>

Loading…
Cancel
Save