File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.1.0" ,
4
4
"description" : " A workflow for Angular made with Webpack" ,
5
5
"scripts" : {
6
- "build" : " rimraf dist && webpack --bail --progress --profile" ,
6
+ "build" : " webpack --bail --progress --profile" ,
7
7
"server" : " webpack-dev-server --history-api-fallback --inline --progress" ,
8
8
"test" : " karma start" ,
9
9
"test-watch" : " karma start --auto-watch --no-single-run" ,
29
29
"babel-core" : " ^6.26.3" ,
30
30
"babel-loader" : " ^7.1.4" ,
31
31
"babel-preset-es2015" : " ^6.1.18" ,
32
+ "clean-webpack-plugin" : " ^2.0.2" ,
32
33
"copy-webpack-plugin" : " ^4.5.1" ,
33
34
"css-loader" : " ^0.28.11" ,
34
35
"extract-text-webpack-plugin" : " 2.0.0-beta.5" ,
48
49
"phantomjs-prebuilt" : " ^2.1.4" ,
49
50
"postcss-loader" : " ^2.1.5" ,
50
51
"raw-loader" : " ^0.5.1" ,
51
- "rimraf" : " ^2.5.1" ,
52
52
"style-loader" : " ^0.21.0" ,
53
53
"webpack" : " ^2.7.0" ,
54
54
"webpack-dev-server" : " ^2.11.2"
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ var autoprefixer = require('autoprefixer');
6
6
var HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
7
7
var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
8
8
var CopyWebpackPlugin = require ( 'copy-webpack-plugin' ) ;
9
+ var CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
9
10
10
11
/**
11
12
* Env
@@ -160,6 +161,7 @@ module.exports = function makeWebpackConfig() {
160
161
* List: http://webpack.github.io/docs/list-of-plugins.html
161
162
*/
162
163
config . plugins = [
164
+ new CleanWebpackPlugin ( ) ,
163
165
new webpack . LoaderOptionsPlugin ( {
164
166
test : / \. s c s s $ / i,
165
167
options : {
You can’t perform that action at this time.
0 commit comments