Эх сурвалжийг харах

修复package以后生成的src没有双引号的问题。

yangzhijie 4 жил өмнө
parent
commit
1d21206d91

+ 1 - 1
build/webpack.prod.conf.js

@@ -67,7 +67,7 @@ const webpackConfig = merge(baseWebpackConfig, {
       minify: {
         removeComments: true,
         collapseWhitespace: true,
-        removeAttributeQuotes: true
+        removeAttributeQuotes: false
         // more options:
         // https://github.com/kangax/html-minifier#options-quick-reference
       },

+ 2 - 2
index.html

@@ -17,8 +17,8 @@
   <script src="./static/bootstrap/js/jquery.min.js"></script>
   <script src="./static/bootstrap/js/jquery.cookie.js"></script>
 
-  <script src="./static/moment/moment.min.js"></script>
-  <script src="./static/moment/moment.zh-cn.js"></script>
+  <script src="../static/moment/moment.min.js"></script>
+  <script src="../static/moment/moment.zh-cn.js"></script>
 
   <script src="./static/bootstrap/js/bootstrap.js"></script>
   <script src="./static/bootstrap/js/bootstrap-dialog.min.js"></script>