This repository has been archived on 2019-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
binauralbeats/build/vue-loader.conf.js

23 lines
553 B
JavaScript
Raw Normal View History

2018-02-21 20:07:24 +01: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
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'
}
}