Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit a3400d0

Browse files
Foxandxsswardbell
authored andcommitted
docs(webpack): use rimraf to clean dist
closes #1393
1 parent 0c49b50 commit a3400d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

public/docs/_examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"webdriver:update": "webdriver-manager update",
1717
"start:webpack": "webpack-dev-server --inline --progress --port 8080",
1818
"test:webpack": "karma start karma.webpack.conf.js",
19-
"build:webpack": "rm -rf dist && webpack --config config/webpack.prod.js --progress --profile --bail"
19+
"build:webpack": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail"
2020
},
2121
"keywords": [],
2222
"author": "",

public/docs/_examples/webpack/ts/package.webpack.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"start": "webpack-dev-server --inline --progress --port 8080",
77
"test": "karma start",
8-
"build": "rm -rf dist && webpack --config config/webpack.prod.js --progress --profile --bail",
8+
"build": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail",
99
"postinstall": "typings install"
1010
},
1111
"license": "MIT",
@@ -37,6 +37,7 @@
3737
"null-loader": "^0.1.1",
3838
"phantomjs-prebuilt": "^2.1.7",
3939
"raw-loader": "^0.5.1",
40+
"rimraf": "^2.5.2",
4041
"style-loader": "^0.13.1",
4142
"ts-loader": "^0.8.1",
4243
"typescript": "^1.8.9",

0 commit comments

Comments
 (0)