File tree 3 files changed +235
-128
lines changed
3 files changed +235
-128
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const paths = require('../config/paths');
4
4
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
5
5
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
6
6
const CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
7
+ const AssetsPlugin = require ( 'assets-webpack-plugin' ) ;
7
8
const getClientEnvironment = require ( './env' ) ;
8
9
9
10
const root = process . cwd ( ) ;
@@ -88,6 +89,9 @@ module.exports = {
88
89
] ;
89
90
} ,
90
91
plugins : [
92
+
93
+ new AssetsPlugin ( { path : paths . dist } ) ,
94
+
91
95
new webpack . DefinePlugin ( getClientEnvironment ( ) ) ,
92
96
93
97
// Remove the content of the ./dist/ folder.
Original file line number Diff line number Diff line change 40
40
" README.md"
41
41
],
42
42
"dependencies" : {
43
+ "assets-webpack-plugin" : " ^3.5.0" ,
43
44
"autoprefixer" : " 6.5.4" ,
44
45
"bluebird" : " 3.4.6" ,
45
46
"chalk" : " 1.1.3" ,
You can’t perform that action at this time.
0 commit comments