pig-ui/build/vue-loader.conf.js

22 lines
552 B
JavaScript
Raw Normal View History

2018-03-04 13:49:35 +08:00
'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
2017-11-02 14:41:37 +08:00
module.exports = {
2017-12-14 09:24:24 +08:00
loaders: utils.cssLoaders({
2018-03-04 13:49:35 +08:00
sourceMap: sourceMapEnabled,
2017-12-14 09:24:24 +08:00
extract: isProduction
2018-03-04 13:49:35 +08:00
}),
cssSourceMap: sourceMapEnabled,
cacheBusting: config.dev.cacheBusting,
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
}
}