You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							484 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							484 B
						
					
					
				| /* eslint-disable no-console */
 | |
| 
 | |
| var webpack = require('webpack')
 | |
| var WebpackDevServer = require('webpack-dev-server')
 | |
| var config = require('./webpack.runReactExample.js')
 | |
| 
 | |
| new WebpackDevServer(webpack(config), {
 | |
|   publicPath: config.output.publicPath,
 | |
|   hot: true,
 | |
|   historyApiFallback: true,
 | |
|   contentBase: __dirname,
 | |
|   stats: {
 | |
|     colors: true
 | |
|   }
 | |
| }).listen(3000, 'localhost', function(err) {
 | |
|   if (err) {
 | |
|     console.log(err)
 | |
|   }
 | |
| 
 | |
|   console.log('Listening at localhost:3000')
 | |
| })
 |