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