12345678910111213141516171819202122 |
- 'use strict'
- const utils = require('./utils')
- const config = require('../config')
- const isProduction = process.env.NODE_ENV === 'production'
- module.exports = function(options){
- return {
- loaders: utils.cssLoaders({
- sourceMap: isProduction
- ? config.build.productionSourceMap
- : config.dev.cssSourceMap,
- extract: isProduction,
- project: options.project
- }),
- transformToRequire: {
- video: 'src',
- source: 'src',
- img: 'src',
- image: 'xlink:href'
- }
- }
- }
|