diff --git a/nezha-fronted/build/webpack.dev.conf.js b/nezha-fronted/build/webpack.dev.conf.js index 45b7911e6..cf74c1258 100644 --- a/nezha-fronted/build/webpack.dev.conf.js +++ b/nezha-fronted/build/webpack.dev.conf.js @@ -55,7 +55,7 @@ const devWebpackConfig = merge(baseWebpackConfig, { new webpack.NoEmitOnErrorsPlugin(), // https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ - favicon: './static/favicon.ico', + favicon: 'src/assets/img/favicon.ico', filename: 'index.html', template: 'index.html', inject: true diff --git a/nezha-fronted/build/webpack.prod.conf.js b/nezha-fronted/build/webpack.prod.conf.js index 396e1f024..1066b82f9 100644 --- a/nezha-fronted/build/webpack.prod.conf.js +++ b/nezha-fronted/build/webpack.prod.conf.js @@ -91,7 +91,7 @@ const webpackConfig = merge(baseWebpackConfig, { // you can customize output by editing /index.html // see https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ - favicon: './static/favicon.ico', + favicon: 'src/assets/img/favicon.ico', filename: config.build.index, template: 'index.html', hash: false, diff --git a/nezha-fronted/index.html b/nezha-fronted/index.html index f6e379b09..835362dc2 100644 --- a/nezha-fronted/index.html +++ b/nezha-fronted/index.html @@ -5,8 +5,7 @@ - - +