From 0ce321c5cb567284a693418dd215aaced845188f Mon Sep 17 00:00:00 2001 From: baivong Date: Thu, 7 Mar 2019 10:45:24 +0700 Subject: [PATCH] Fix build scripts --- package-lock.json | 2 +- package.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5cb8f5a..0313904 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jepub", - "version": "1.2.4", + "version": "1.2.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 11be39e..062334b 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,14 @@ { "name": "jepub", - "version": "1.2.4", + "version": "1.2.5", "description": "Generate simple EPUB books with JavaScript.", "main": "src/jepub.js", "scripts": { "clean": "rimraf dist", "postclean": "mkdirp dist", - "build": "webpack --config webpack.production.config.js", + "prebuild": "npm run clean", + "build": "webpack --config webpack.development.config.js", + "postbuild": "webpack --config webpack.production.config.js", "prestart": "npm run clean", "start": "webpack --config webpack.development.config.js --watch", "test": "echo \"Error: no test specified\" && exit 1"