Changed to now use a prod and a dev webpack config. Our prod config now minifies and sets up caching for us. Package json now has build command.
This commit is contained in:
		
							
								
								
									
										17
									
								
								client/webpack.dev.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								client/webpack.dev.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| /* | ||||
| * @Author: KevinMidboe | ||||
| * @Date:   2017-06-01 19:09:16 | ||||
| * @Last Modified by:   KevinMidboe | ||||
| * @Last Modified time: 2017-10-24 22:12:52 | ||||
| */ | ||||
|  | ||||
| const merge = require('webpack-merge'); | ||||
| const common = require('./webpack.common.js'); | ||||
|  | ||||
| module.exports = merge(common, { | ||||
| 	devtool: 'inline-source-map', | ||||
| 	devServer: { | ||||
| 		contentBase: './dist', | ||||
| 		headers: {'Access-Control-Allow-Origin': '*'} | ||||
| 	} | ||||
| });; | ||||
		Reference in New Issue
	
	Block a user