mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
22 lines
552 B
JavaScript
22 lines
552 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'
|
|
}
|
|
} |