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.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							536 B
						
					
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							536 B
						
					
					
				const path = require('path'); | 
						|
const packageName = require('../package.json').name; | 
						|
const { getWebpackVersion } = require('../lib/utils'); | 
						|
 | 
						|
const webpackVersion = getWebpackVersion(); | 
						|
 | 
						|
const config = { | 
						|
  output: { | 
						|
    filename: '[name].js' | 
						|
  }, | 
						|
 | 
						|
  devtool: false, | 
						|
 | 
						|
  resolve: { | 
						|
    alias: { | 
						|
      [packageName]: path.resolve(__dirname, '..') | 
						|
    } | 
						|
  }, | 
						|
 | 
						|
  resolveLoader: { | 
						|
    alias: { | 
						|
      [packageName]: path.resolve(__dirname, '..') | 
						|
    } | 
						|
  } | 
						|
}; | 
						|
 | 
						|
if (webpackVersion >= 4) { | 
						|
  config.mode = 'development'; | 
						|
} | 
						|
 | 
						|
module.exports = config;
 | 
						|
 |