From 92c3237d0808c034df707f7d97d0b29ce68ccc1a Mon Sep 17 00:00:00 2001 From: yma16 <17685043634@163.com> Date: Tue, 19 Apr 2022 20:27:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=89=93=E5=8C=85=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9myblog=5Fstatic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.dev.conf.js | 4 +- build/webpack.prod.conf.js | 6 +- config/index.js | 6 +- index.html | 8 +- {static => myblog_static}/.gitkeep | 0 .../utils/fx_background/css/core.css | 0 .../utils/fx_background/image/background.png | Bin .../utils/fx_background/image/gg.jpg | Bin .../utils/fx_background/image/img_fbx.jpg | Bin .../utils/fx_background/image/logo.ico | Bin .../utils/fx_background/image/logo.jpg | Bin .../utils/fx_background/image/logo.png | Bin .../utils/fx_background/image/previewFix.jpg | Bin .../fx_background/js/jquery-2.1.4.min.js | 0 .../utils/fx_background/js/jquery.min.js | 4 +- src/App.vue | 166 +++++++------- src/components/Article.vue | 2 +- src/components/Loading.vue | 2 +- src/components/Onlinewebsocket.vue | 6 +- src/plugins/axios.js | 52 ++--- src/router/index.js | 203 +++++++++--------- 21 files changed, 226 insertions(+), 233 deletions(-) rename {static => myblog_static}/.gitkeep (100%) rename {static => myblog_static}/utils/fx_background/css/core.css (100%) rename {static => myblog_static}/utils/fx_background/image/background.png (100%) rename {static => myblog_static}/utils/fx_background/image/gg.jpg (100%) rename {static => myblog_static}/utils/fx_background/image/img_fbx.jpg (100%) rename {static => myblog_static}/utils/fx_background/image/logo.ico (100%) rename {static => myblog_static}/utils/fx_background/image/logo.jpg (100%) rename {static => myblog_static}/utils/fx_background/image/logo.png (100%) rename {static => myblog_static}/utils/fx_background/image/previewFix.jpg (100%) rename {static => myblog_static}/utils/fx_background/js/jquery-2.1.4.min.js (100%) rename {static => myblog_static}/utils/fx_background/js/jquery.min.js (98%) diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 070ae22..4dcd81e 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -57,10 +57,10 @@ const devWebpackConfig = merge(baseWebpackConfig, { template: 'index.html', inject: true }), - // copy custom static assets + // copy custom myblog_static assets new CopyWebpackPlugin([ { - from: path.resolve(__dirname, '../static'), + from: path.resolve(__dirname, '../myblog_static'), to: config.dev.assetsSubDirectory, ignore: ['.*'] } diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 2f17259..e31ffb4 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -48,7 +48,7 @@ const webpackConfig = merge(baseWebpackConfig, { filename: utils.assetsPath('css/[name].[contenthash].css'), // Setting the following option to `false` will not extract CSS from codesplit chunks. // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. - // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, + // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 allChunks: true, }), @@ -112,10 +112,10 @@ const webpackConfig = merge(baseWebpackConfig, { minChunks: 3 }), - // copy custom static assets + // copy custom myblog_static assets new CopyWebpackPlugin([ { - from: path.resolve(__dirname, '../static'), + from: path.resolve(__dirname, '../myblog_static'), to: config.build.assetsSubDirectory, ignore: ['.*'] } diff --git a/config/index.js b/config/index.js index 42131d0..969aa82 100644 --- a/config/index.js +++ b/config/index.js @@ -7,7 +7,7 @@ const path = require("path"); module.exports = { dev: { // Paths - assetsSubDirectory: "static", + assetsSubDirectory: "myblog_static", assetsPublicPath: "/", proxyTable: { "/api/": { @@ -78,8 +78,8 @@ module.exports = { // https://webpack.js.org/configuration/devtool/#production devtool: "#source-map", - // Gzip off by default as many popular static hosts such as - // Surge or Netlify already gzip all static assets for you. + // Gzip off by default as many popular myblog_static hosts such as + // Surge or Netlify already gzip all myblog_static assets for you. // Before setting to `true`, make sure to: // npm install --save-dev compression-webpack-plugin productionGzip: false, diff --git a/index.html b/index.html index bb244a3..cdd415b 100644 --- a/index.html +++ b/index.html @@ -6,16 +6,16 @@