vue-loader.conf.js 307 Bytes
Newer Older
潘自豪's avatar
潘自豪 committed
1 2 3 4 5 6 7 8 9 10 11 12
var utils = require('./utils')
var config = require('../config')
var isProduction = process.env.NODE_ENV === 'production'

module.exports = {
  loaders: utils.cssLoaders({
    sourceMap: isProduction
      ? config.build.productionSourceMap
      : config.dev.cssSourceMap,
    extract: isProduction
  })
}