|  | @ -1,13 +1,13 @@ | 
			
		
	
		
		
			
				
					|  |  | var path = require('path'); |  |  | var path = require('path'); | 
			
		
	
		
		
			
				
					|  |  | var webpack = require('webpack'); |  |  | var webpack = require('webpack'); | 
			
		
	
		
		
			
				
					|  |  | var HtmlWebpackPlugin = require('html-webpack-plugin'); |  |  | var HtmlWebpackPlugin = require('html-webpack-plugin'); | 
			
		
	
		
		
			
				
					
					|  |  | const config = require('./config.js'); |  |  | // const config = require('./config.js');
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | const PATHS = { |  |  | const PATHS = { | 
			
		
	
		
		
			
				
					|  |  |     app: path.join(__dirname, 'client/src'), |  |  |     app: path.join(__dirname, 'client/src'), | 
			
		
	
		
		
			
				
					|  |  |     build: path.join(__dirname, 'client/build') |  |  |     build: path.join(__dirname, 'client/build') | 
			
		
	
		
		
			
				
					|  |  | }; |  |  | }; | 
			
		
	
		
		
			
				
					
					|  |  | console.log(config); |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | module.exports = { |  |  | module.exports = { | 
			
		
	
		
		
			
				
					|  |  |     mode: "production", |  |  |     mode: "production", | 
			
		
	
		
		
			
				
					|  |  |     entry: { |  |  |     entry: { | 
			
		
	
	
		
		
			
				
					|  | @ -32,16 +32,16 @@ module.exports = { | 
			
		
	
		
		
			
				
					|  |  |             filename: '../index.html', |  |  |             filename: '../index.html', | 
			
		
	
		
		
			
				
					|  |  |             template: './client/index.ejs' |  |  |             template: './client/index.ejs' | 
			
		
	
		
		
			
				
					|  |  |         }), |  |  |         }), | 
			
		
	
		
		
			
				
					
					|  |  |         new webpack.DefinePlugin({ |  |  |         // new webpack.DefinePlugin({
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             'process.env.NODE_ENV': JSON.stringify('development'), |  |  |         //     'process.env.NODE_ENV': JSON.stringify('development'),
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             ...(() => { |  |  |         //     ...(() => {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 let nextParams = {} |  |  |         //         let nextParams = {}
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 for (let k in config.frontParams) { |  |  |         //         for (let k in config.frontParams) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     nextParams[k] = JSON.stringify(config.frontParams[k]) |  |  |         //             nextParams[k] = JSON.stringify(config.frontParams[k])
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 } |  |  |         //         }
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 return nextParams |  |  |         //         return nextParams
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             })() |  |  |         //     })()
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         }), |  |  |         // }),
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |     ], |  |  |     ], | 
			
		
	
		
		
			
				
					|  |  |     optimization: { |  |  |     optimization: { | 
			
		
	
		
		
			
				
					|  |  |         splitChunks: { |  |  |         splitChunks: { | 
			
		
	
	
		
		
			
				
					|  | 
 |