mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			679 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			679 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import type { Configuration } from "webpack";
 | |
| import { VanillaExtractPlugin } from "@vanilla-extract/webpack-plugin";
 | |
| import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin";
 | |
| 
 | |
| import { rules } from "./webpack.rules";
 | |
| import { plugins } from "./webpack.plugins";
 | |
| 
 | |
| rules.push({
 | |
|   test: /\.css$/,
 | |
|   use: [{ loader: "style-loader" }, { loader: "css-loader" }],
 | |
| });
 | |
| 
 | |
| rules.push({
 | |
|   test: /\.svg$/,
 | |
|   use: ["@svgr/webpack"],
 | |
| });
 | |
| 
 | |
| export const rendererConfig: Configuration = {
 | |
|   module: {
 | |
|     rules,
 | |
|   },
 | |
|   plugins: [...plugins, new VanillaExtractPlugin()],
 | |
|   resolve: {
 | |
|     extensions: [".js", ".ts", ".jsx", ".tsx", ".css"],
 | |
|     plugins: [new TsconfigPathsPlugin()],
 | |
|   },
 | |
| };
 | 
