18 lines
398 B
JavaScript
18 lines
398 B
JavaScript
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
|
|
}),
|
|
postcss: [
|
|
require('autoprefixer')({
|
|
browsers: ['last 2 versions']
|
|
})
|
|
]
|
|
}
|