From 1ee88617a2850d092e0a479a78d2f0758cdaca8d Mon Sep 17 00:00:00 2001 From: Gcaufy Date: Mon, 22 May 2017 18:07:06 +0800 Subject: [PATCH] added build command --- package.json | 1 + wepy.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aeb768e..362fa2f 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "", "main": "dist/app.js", "scripts": { + "build": "cross-env NODE_ENV=production wepy build --no-cache", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", diff --git a/wepy.config.js b/wepy.config.js index b9dee2d..65ef4d3 100644 --- a/wepy.config.js +++ b/wepy.config.js @@ -30,7 +30,7 @@ module.exports = { }; -if (true || prod) { +if (prod) { delete module.exports.compilers.babel.sourcesMap; // 压缩sass