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.
		
		
		
		
			
				
					34 lines
				
				650 B
			
		
		
			
		
	
	
					34 lines
				
				650 B
			| 
								 
											4 years ago
										 
									 | 
							
								const path = require('path');
							 | 
						||
| 
								 | 
							
								const merge = require('deepmerge');
							 | 
						||
| 
								 | 
							
								const baseConfig = require('../base-webpack.config');
							 | 
						||
| 
								 | 
							
								const SpritePlugin = require('../../plugin');
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const config = merge(baseConfig, {
							 | 
						||
| 
								 | 
							
								  context: __dirname,
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  entry: './main',
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  output: {
							 | 
						||
| 
								 | 
							
								    path: path.resolve(__dirname, 'build'),
							 | 
						||
| 
								 | 
							
								    publicPath: 'build/'
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  module: {
							 | 
						||
| 
								 | 
							
								    rules: [
							 | 
						||
| 
								 | 
							
								      {
							 | 
						||
| 
								 | 
							
								        test: /\.svg$/,
							 | 
						||
| 
								 | 
							
								        loader: 'svg-sprite-loader',
							 | 
						||
| 
								 | 
							
								        options: {
							 | 
						||
| 
								 | 
							
								          extract: true,
							 | 
						||
| 
								 | 
							
								          runtimeGenerator: require.resolve('./extracting-runtime-generator.js')
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    ]
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  plugins: [
							 | 
						||
| 
								 | 
							
								    new SpritePlugin()
							 | 
						||
| 
								 | 
							
								  ]
							 | 
						||
| 
								 | 
							
								});
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								module.exports = config;
							 |