vue-loader.conf.js 483 B

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