vue-loader.conf.js 413 B

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