mirror of
				https://github.com/MarioSpore/Grinch-AP.git
				synced 2025-10-21 20:21:32 -06:00 
			
		
		
		
	
		
			
	
	
		
			46 lines
		
	
	
		
			900 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			46 lines
		
	
	
		
			900 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|   | const path = require('path'); | ||
|  | 
 | ||
|  | module.exports = { | ||
|  |   entry: { | ||
|  |     index: './src/js/index.js', | ||
|  |   }, | ||
|  |   module: { | ||
|  |     rules: [ | ||
|  |       { | ||
|  |         test: /\.(js|jsx|es6)$/, | ||
|  |         loader: 'babel-loader', | ||
|  |         query: { | ||
|  |           compact: true, | ||
|  |           minified: true, | ||
|  |         }, | ||
|  |       }, | ||
|  |       { | ||
|  |         test: /\.((css)|(s[a|c]ss))$/, | ||
|  |         use: [ | ||
|  |           { loader: 'style-loader' }, | ||
|  |           { loader: 'css-loader' }, | ||
|  |           { loader: 'sass-loader' }, | ||
|  |         ], | ||
|  |       }, | ||
|  |       { | ||
|  |         test: /\.(otf)$/, | ||
|  |         use: [ | ||
|  |           { | ||
|  |             loader: 'file-loader', | ||
|  |             options: { | ||
|  |               name: '[name].[ext]', | ||
|  |               outputPath: 'fonts/', | ||
|  |               publicPath: 'assets/fonts/', | ||
|  |             }, | ||
|  |           }, | ||
|  |         ], | ||
|  |       }, | ||
|  |     ], | ||
|  |   }, | ||
|  |   output: { | ||
|  |     path: `${path.resolve(__dirname)}/public/assets`, | ||
|  |     publicPath: '/', | ||
|  |     filename: '[name].bundle.js', | ||
|  |   }, | ||
|  | }; |