jinjianback1.1/build/vue-loader.conf.js

23 lines
553 B
JavaScript
Raw Normal View History

2017-12-14 16:07:10 +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-06-26 13:38:24 +08:00
module.exports = {
loaders: utils.cssLoaders({
2017-12-14 16:07:10 +08:00
sourceMap: sourceMapEnabled,
2017-06-26 13:38:24 +08:00
extract: isProduction
2017-12-14 16:07:10 +08:00
}),
cssSourceMap: sourceMapEnabled,
cacheBusting: config.dev.cacheBusting,
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
}
2017-06-26 13:38:24 +08:00
}