Browse Source

Fix some bug

qingwei.li 8 năm trước cách đây
mục cha
commit
f7d2d720f4
3 tập tin đã thay đổi với 11 bổ sung3 xóa
  1. 5 0
      build/cooking.demo.js
  2. 1 1
      examples/index.tpl
  3. 5 2
      examples/pages/template/index.tpl

+ 5 - 0
build/cooking.demo.js

@@ -43,6 +43,11 @@ cooking.set({
   postcss: config.postcss
 });
 
+// fix publicPath
+if (!process.env.CI_ENV) {
+  cooking.add('output.publicPath', '');
+}
+
 cooking.add('loader.md', {
   test: /\.md$/,
   loader: 'vue-markdown-loader'

+ 1 - 1
examples/index.tpl

@@ -8,7 +8,7 @@
   </head>
   <body>
     <div id="app"></div><% if (process.env.NODE_ENV === 'production') { %>
-    <script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.0.5/vue.runtime.min.js"></script>
+    <script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.0.7/vue.runtime.min.js"></script>
     <script src="//cdnjs.cloudflare.com/ajax/libs/vue-router/2.0.1/vue-router.min.js"></script><% } %>
   </body>
   <% if (process.env.NODE_ENV === 'production') { %><script>

+ 5 - 2
examples/pages/template/index.tpl

@@ -55,7 +55,7 @@
       font-size: <%= titleSize >px;
       margin: 0;
     }
-    
+
     p {
       font-size: 14px;
       opacity: .8;
@@ -185,6 +185,9 @@
         padding-bottom: 54px;
       }
     }
+    .banner-stars {
+      display: none;
+    }
     .banner-desc {
       #line2 {
         display: none;
@@ -244,7 +247,7 @@
             <h3><%= 8 ></h3>
             <p><%= 9 ></p>
             <router-link
-              active-class="active" 
+              active-class="active"
               to="/<%= lang >/resource"
               exact><%= 5 >
             </router-link>