From a3400d035c98f327ea8eb5e16db584555b11b7b7 Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Sat, 14 May 2016 19:35:30 +0200 Subject: [PATCH] docs(webpack): use rimraf to clean dist closes #1393 --- public/docs/_examples/package.json | 2 +- public/docs/_examples/webpack/ts/package.webpack.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/docs/_examples/package.json b/public/docs/_examples/package.json index bd2d26bb50..fa3fa42886 100644 --- a/public/docs/_examples/package.json +++ b/public/docs/_examples/package.json @@ -16,7 +16,7 @@ "webdriver:update": "webdriver-manager update", "start:webpack": "webpack-dev-server --inline --progress --port 8080", "test:webpack": "karma start karma.webpack.conf.js", - "build:webpack": "rm -rf dist && webpack --config config/webpack.prod.js --progress --profile --bail" + "build:webpack": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail" }, "keywords": [], "author": "", diff --git a/public/docs/_examples/webpack/ts/package.webpack.json b/public/docs/_examples/webpack/ts/package.webpack.json index 51ff625d86..041c0b41e1 100644 --- a/public/docs/_examples/webpack/ts/package.webpack.json +++ b/public/docs/_examples/webpack/ts/package.webpack.json @@ -5,7 +5,7 @@ "scripts": { "start": "webpack-dev-server --inline --progress --port 8080", "test": "karma start", - "build": "rm -rf dist && webpack --config config/webpack.prod.js --progress --profile --bail", + "build": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail", "postinstall": "typings install" }, "license": "MIT", @@ -37,6 +37,7 @@ "null-loader": "^0.1.1", "phantomjs-prebuilt": "^2.1.7", "raw-loader": "^0.5.1", + "rimraf": "^2.5.2", "style-loader": "^0.13.1", "ts-loader": "^0.8.1", "typescript": "^1.8.9",