2017-10-30 15:24:06 +00:00
|
|
|
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.produceSourceMap,
|
|
|
|
extract: isProduction
|
|
|
|
})
|
|
|
|
}
|