Skip to content

Commit

Permalink
Merge pull request #143 from ant-tool/support-no-clean
Browse files Browse the repository at this point in the history
atool-build would never delete output files, Close #116
  • Loading branch information
soda-x committed Apr 20, 2016
2 parents 0b49ddd + eac53e5 commit 26d552e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"less-loader": "~2.2.0",
"map-json-webpack-plugin": "~1.1.0",
"postcss-loader": "~0.8.0",
"rimraf": "~2.5.0",
"rucksack-css": "~0.8.5",
"url-loader": "~0.5.6",
"webpack": "~1.12.2"
Expand Down
3 changes: 0 additions & 3 deletions src/build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { join } from 'path';
import { writeFileSync } from 'fs';
import rimraf from 'rimraf';
import webpack, { ProgressPlugin } from 'webpack';
import chalk from 'chalk';
import mergeCustomConfig from './mergeCustomConfig';
Expand Down Expand Up @@ -73,10 +72,8 @@ export default function(args, callback) {
webpackConfig = Array.isArray(webpackConfig) ? webpackConfig : [webpackConfig];

let fileOutputPath;
// Clean output dir first.
webpackConfig.forEach(config => {
fileOutputPath = config.output.path;
rimraf.sync(fileOutputPath);
});

if (args.watch) {
Expand Down

0 comments on commit 26d552e

Please sign in to comment.