Kaynağa Gözat

优化:取消未用的webpack插件

Yahoo 5 yıl önce
ebeveyn
işleme
58c97d1431
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      vue.config.js

+ 5 - 5
vue.config.js

@@ -39,11 +39,11 @@ const vueConfig = {
     plugins: [
       // Ignore all locale files of moment.js
       new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
-      new webpack.DefinePlugin({
-        APP_VERSION: `"${require('./package.json').version}"`,
-        GIT_HASH: JSON.stringify(GitRevision.version()),
-        BUILD_DATE: buildDate
-      })
+      // new webpack.DefinePlugin({
+      //   APP_VERSION: `"${require('./package.json').version}"`,
+      //   GIT_HASH: JSON.stringify(GitRevision.version()),
+      //   BUILD_DATE: buildDate
+      // })
     ],
     // if prod, add externals
     externals: isProd ? assetsCDN.externals : {}