From 960b562e84360e692b0df6501b1bf390b552ed7c Mon Sep 17 00:00:00 2001
From: Pan <panfree23@gmail.com>
Date: Mon, 25 Mar 2019 14:12:23 +0800
Subject: [PATCH] update vue.config.js

---
 package.json  |  1 +
 vue.config.js | 14 +++++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/package.json b/package.json
index c4fb285e..49af1538 100644
--- a/package.json
+++ b/package.json
@@ -84,6 +84,7 @@
     "connect": "3.6.6",
     "eslint": "5.15.1",
     "eslint-plugin-vue": "5.2.2",
+    "html-webpack-plugin": "3.2.0",
     "husky": "1.3.1",
     "lint-staged": "7.2.2",
     "mockjs": "1.0.1-beta3",
diff --git a/vue.config.js b/vue.config.js
index 94a9d74c..557b11e3 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -103,13 +103,13 @@ module.exports = {
       .when(process.env.NODE_ENV !== 'development',
         config => {
           config
-          // .plugin('ScriptExtHtmlWebpackPlugin')
-          // .after('html')
-          // .use('script-ext-html-webpack-plugin', [{
-          //   // `runtime` must same as runtimeChunk name. default is `runtime`
-          //   inline: /runtime\..*\.js$/
-          // }])
-          // .end()
+            .plugin('ScriptExtHtmlWebpackPlugin')
+            .after('html')
+            .use('script-ext-html-webpack-plugin', [{
+            // `runtime` must same as runtimeChunk name. default is `runtime`
+              inline: /runtime\..*\.js$/
+            }])
+            .end()
           config
             .optimization.splitChunks({
               chunks: 'all',