Fix some bug

This commit is contained in:
qingwei.li 2016-11-18 19:43:07 +08:00 committed by Leopoldthecoder
parent 37510831ca
commit c6d6b32c5e
3 changed files with 11 additions and 3 deletions

View File

@ -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'

View File

@ -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>

View File

@ -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>