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.
		
		
		
		
		
			
		
			
				
					
					
						
							39 lines
						
					
					
						
							763 B
						
					
					
				
			
		
		
	
	
							39 lines
						
					
					
						
							763 B
						
					
					
				const path = require('path'); | 
						|
const webpack = require('webpack'); | 
						|
const merge = require('deepmerge'); | 
						|
const baseConfig = require('../base-webpack.config'); | 
						|
const SpritePlugin = require('../../plugin'); | 
						|
 | 
						|
module.exports = merge(baseConfig, { | 
						|
  context: __dirname, | 
						|
 | 
						|
  entry: './main', | 
						|
 | 
						|
  output: { | 
						|
    path: path.resolve(__dirname, 'build'), | 
						|
    publicPath: 'build/' | 
						|
  }, | 
						|
 | 
						|
  module: { | 
						|
    rules: [ | 
						|
      { | 
						|
        test: /\.svg$/, | 
						|
        use: [ | 
						|
          { | 
						|
            loader: 'svg-sprite-loader', | 
						|
            options: { extract: true } | 
						|
          }, | 
						|
          'svgo-loader' | 
						|
        ] | 
						|
      } | 
						|
    ] | 
						|
  }, | 
						|
 | 
						|
  plugins: [ | 
						|
    new webpack.DllReferencePlugin({ | 
						|
      context: '.', | 
						|
      manifest: require('./build/dll-manifest.json') | 
						|
    }), | 
						|
    new SpritePlugin() | 
						|
  ] | 
						|
});
 | 
						|
 |