2017-06-28 18:45:41 +08:00
|
|
|
var utils = require('./utils')
|
2017-06-29 02:09:32 +08:00
|
|
|
var config = require('./config')
|
2017-06-28 18:45:41 +08:00
|
|
|
var isProduction = process.env.NODE_ENV === 'production'
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
loaders: utils.cssLoaders({
|
|
|
|
sourceMap: isProduction
|
|
|
|
? config.build.productionSourceMap
|
2017-07-06 16:04:10 +08:00
|
|
|
: config.dev.produceSourceMap,
|
2017-06-28 18:45:41 +08:00
|
|
|
extract: isProduction
|
|
|
|
})
|
|
|
|
}
|