Skip to content

Commit

Permalink
added build command
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed May 22, 2017
1 parent 0e1909f commit 1ee8861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
2 changes: 1 addition & 1 deletion wepy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
};


if (true || prod) {
if (prod) {

delete module.exports.compilers.babel.sourcesMap;
// 压缩sass
Expand Down

0 comments on commit 1ee8861

Please sign in to comment.