Explorar el Código

优化:取消未用的webpack插件

Yahoo hace 5 años
padre
commit
58c97d1431
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  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 : {}