vue-loader.conf.js 392 B

1234567891011121314
  1. var utils = require('./utils')
  2. var config = require('../config')
  3. var isProduction = process.env.NODE_ENV === 'production'
  4. var isTest = process.env.NODE_ENV === 'test'
  5. module.exports = {
  6. loaders: utils.cssLoaders({
  7. sourceMap: isProduction
  8. ? config.build.productionSourceMap
  9. : isTest?config.test.cssSourceMap
  10. :config.dev.cssSourceMap,
  11. extract: isProduction
  12. })
  13. }