File tree Expand file tree Collapse file tree 3 files changed +235
-128
lines changed Expand file tree Collapse file tree 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');
44const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
55const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
66const CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
7+ const AssetsPlugin = require ( 'assets-webpack-plugin' ) ;
78const getClientEnvironment = require ( './env' ) ;
89
910const root = process . cwd ( ) ;
@@ -88,6 +89,9 @@ module.exports = {
8889 ] ;
8990 } ,
9091 plugins : [
92+
93+ new AssetsPlugin ( { path : paths . dist } ) ,
94+
9195 new webpack . DefinePlugin ( getClientEnvironment ( ) ) ,
9296
9397 // Remove the content of the ./dist/ folder.
Original file line number Diff line number Diff line change 4040 " README.md"
4141 ],
4242 "dependencies" : {
43+ "assets-webpack-plugin" : " ^3.5.0" ,
4344 "autoprefixer" : " 6.5.4" ,
4445 "bluebird" : " 3.4.6" ,
4546 "chalk" : " 1.1.3" ,
You can’t perform that action at this time.
0 commit comments