vue-loader.conf.js 432 B

12345678910111213141516171819
  1. 'use strict'
  2. const utils = require('./utils')
  3. const config = require('../config')
  4. const isProduction = process.env.NODE_ENV === 'production'
  5. module.exports = {
  6. loaders: utils.cssLoaders({
  7. sourceMap: isProduction
  8. ? config.build.productionSourceMap
  9. : config.dev.cssSourceMap,
  10. extract: isProduction
  11. }),
  12. transformToRequire: {
  13. video: 'src',
  14. source: 'src',
  15. img: 'src',
  16. image: 'xlink:href'
  17. }
  18. }