mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-11-03 20:15:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			931 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			931 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
module.exports = {
 | 
						|
  module: {
 | 
						|
    rules: [
 | 
						|
      {
 | 
						|
        parser: {
 | 
						|
          system: false,
 | 
						|
          systemjs: false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      {
 | 
						|
        test: /\.(js|ts|jsx|tsx)$/,
 | 
						|
        exclude: /node_modules/,
 | 
						|
        use: [
 | 
						|
          {
 | 
						|
            loader: "babel-loader",
 | 
						|
            options: {
 | 
						|
              cacheDirectory: true,
 | 
						|
              presets: ["@scm-manager/babel-preset"]
 | 
						|
            }
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      {
 | 
						|
        test: /\.(css|scss|sass)$/i,
 | 
						|
        use: [
 | 
						|
          // Creates `style` nodes from JS strings
 | 
						|
          "style-loader",
 | 
						|
          // Translates CSS into CommonJS
 | 
						|
          "css-loader",
 | 
						|
          // Compiles Sass to CSS
 | 
						|
          "sass-loader"
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      {
 | 
						|
        test: /\.(png|svg|jpg|gif|woff2?|eot|ttf)$/,
 | 
						|
        use: ["file-loader"]
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  resolve: {
 | 
						|
    extensions: [
 | 
						|
      ".ts", ".tsx", ".js", ".jsx", ".css", ".scss", ".json"
 | 
						|
    ]
 | 
						|
  }
 | 
						|
};
 |