mirror of
				https://github.com/KevinMidboe/leifsopplevelser.git
				synced 2025-10-29 17:50:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			553 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			553 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict'
 | |
| const utils = require('./utils')
 | |
| const config = require('../config')
 | |
| const isProduction = process.env.NODE_ENV === 'production'
 | |
| const sourceMapEnabled = isProduction
 | |
|   ? config.build.productionSourceMap
 | |
|   : config.dev.cssSourceMap
 | |
| 
 | |
| module.exports = {
 | |
|   loaders: utils.cssLoaders({
 | |
|     sourceMap: sourceMapEnabled,
 | |
|     extract: isProduction
 | |
|   }),
 | |
|   cssSourceMap: sourceMapEnabled,
 | |
|   cacheBusting: config.dev.cacheBusting,
 | |
|   transformToRequire: {
 | |
|     video: ['src', 'poster'],
 | |
|     source: 'src',
 | |
|     img: 'src',
 | |
|     image: 'xlink:href'
 | |
|   }
 | |
| }
 |