vue-loader.conf.js 501 B

1234567891011121314151617181920
  1. var utils = require('./utils')
  2. var config = require('../config')
  3. var isProduction = process.env.NODE_ENV === 'production'
  4. var postcssConfig = require('./postcss.config.js')
  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. postcss:postcssConfig.postfactory
  19. }