From 2a0e32ff8c38d187a97bdad87fda44ddb155c5fb Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Tue, 30 Jun 2020 14:34:11 +0800 Subject: [PATCH] Change favicon.ico icon introduction method and package compilation to increase version number (#3030) --- dolphinscheduler-ui/build/config.js | 6 ++++-- dolphinscheduler-ui/favicon.ico | Bin 0 -> 4286 bytes dolphinscheduler-ui/src/view/home/index.html | 2 +- dolphinscheduler-ui/src/view/login/index.html | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 dolphinscheduler-ui/favicon.ico diff --git a/dolphinscheduler-ui/build/config.js b/dolphinscheduler-ui/build/config.js index b5db173c13..91d59a06b4 100644 --- a/dolphinscheduler-ui/build/config.js +++ b/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: [ diff --git a/dolphinscheduler-ui/favicon.ico b/dolphinscheduler-ui/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..acf4cf74c893ddad709e7a4e9aafc5de77a51154 GIT binary patch literal 4286 zcmeH}Pe@cz6o;>kM8r@nLShPW5h1N4T11PSRfI^3h-e|vDng=F5Jd}%8EO&XLM#%* zB!&nH+K7bMkWms(l8A5-X(d__ja1YmgSYSZm?w9J8RwBr5%lEq+;{J}=XdVkH^$WP z*U(_}-`v_@Or0^N5vVe8Q2qbs-Y*6ZArq`R&7IVViQ8>NZ;_cS0kq2F+1S zZCXF#oPZRuZifNiTc9(`>AhLC4D!d?e70j zx<&c!P%L6!f#;yTuQTl5-&nPEfzF=3FKIZcKEw&m|F7r32Gn#V!+v3}Pqpg&1j_wEK*Sb@Is-dAv!hkMS- l8uMe$n9+-D+55)W=8hUm7~7nVSUxEhfBPNqvz9jZ`3bSwG&leN literal 0 HcmV?d00001 diff --git a/dolphinscheduler-ui/src/view/home/index.html b/dolphinscheduler-ui/src/view/home/index.html index 2a18be212d..b29d11614d 100644 --- a/dolphinscheduler-ui/src/view/home/index.html +++ b/dolphinscheduler-ui/src/view/home/index.html @@ -33,7 +33,7 @@ - + DolphinScheduler diff --git a/dolphinscheduler-ui/src/view/login/index.html b/dolphinscheduler-ui/src/view/login/index.html index df456f6ce0..cd1243f71f 100644 --- a/dolphinscheduler-ui/src/view/login/index.html +++ b/dolphinscheduler-ui/src/view/login/index.html @@ -31,7 +31,7 @@ - + Login - DolphinScheduler