From f7d2d720f43d0a614cc340ac5193332fdb739438 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Fri, 18 Nov 2016 19:43:07 +0800 Subject: [PATCH] Fix some bug --- build/cooking.demo.js | 5 +++++ examples/index.tpl | 2 +- examples/pages/template/index.tpl | 7 +++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/build/cooking.demo.js b/build/cooking.demo.js index 92c978fdf..2a6b12cbb 100644 --- a/build/cooking.demo.js +++ b/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' diff --git a/examples/index.tpl b/examples/index.tpl index 11886406e..f86bfc3f9 100644 --- a/examples/index.tpl +++ b/examples/index.tpl @@ -8,7 +8,7 @@
<% if (process.env.NODE_ENV === 'production') { %> - + <% } %> <% if (process.env.NODE_ENV === 'production') { %>