mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			550 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			550 B
		
	
	
	
		
			JavaScript
		
	
	
	
| "use strict";
 | |
| 
 | |
| /** @type {import("../../../").Configuration} */
 | |
| module.exports = {
 | |
| 	mode: "production",
 | |
| 	entry: "./index.js",
 | |
| 	module: {
 | |
| 		rules: [
 | |
| 			{
 | |
| 				test: /\.(png|jpg|svg)$/,
 | |
| 				type: "asset"
 | |
| 			},
 | |
| 			{
 | |
| 				test: /\.html$/,
 | |
| 				type: "asset/resource",
 | |
| 				generator: {
 | |
| 					filename: "static/[name][ext]"
 | |
| 				}
 | |
| 			},
 | |
| 			{
 | |
| 				test: /\.css$/,
 | |
| 				type: "asset/inline"
 | |
| 			},
 | |
| 			{
 | |
| 				test: /\.source\.js$/,
 | |
| 				type: "asset/source"
 | |
| 			},
 | |
| 			{
 | |
| 				mimetype: "text/plain",
 | |
| 				type: "asset"
 | |
| 			}
 | |
| 		]
 | |
| 	},
 | |
| 	output: {
 | |
| 		filename: "bundle.js"
 | |
| 	}
 | |
| };
 |