diff --git a/dolphinscheduler-ui/build/config.js b/dolphinscheduler-ui/build/config.js index b5db173c1395de2ccb31e54b9e28a21681d5c71e..91d59a06b4bdcc43ca7a042c12780c7b4258c2ea 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 Binary files /dev/null and b/dolphinscheduler-ui/favicon.ico differ diff --git a/dolphinscheduler-ui/src/view/home/index.html b/dolphinscheduler-ui/src/view/home/index.html index 2a18be212d38fab4a77399ec553098ecd899fae8..b29d11614d7a93c440b802b593861c0f8a0b7b63 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 df456f6ce02d3d86db269cd7e22b2d896313f935..cd1243f71f3a4bc47fc024ad45f59fc9443bcee7 100644 --- a/dolphinscheduler-ui/src/view/login/index.html +++ b/dolphinscheduler-ui/src/view/login/index.html @@ -31,7 +31,7 @@ - + Login - DolphinScheduler