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 0000000000..acf4cf74c8 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 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