fix:postcss-loader sourceMap

This commit is contained in:
Pan 2017-11-23 16:30:51 +08:00
parent 1c4c3380e6
commit e0f6248d0e
1 changed files with 3 additions and 1 deletions

View File

@ -22,8 +22,10 @@ exports.cssLoaders = function (options) {
var postcssLoader = { var postcssLoader = {
loader: 'postcss-loader', loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap sourceMap: options.sourceMap
} }
}
// generate loader string to be used with extract text plugin // generate loader string to be used with extract text plugin
function generateLoaders (loader, loaderOptions) { function generateLoaders (loader, loaderOptions) {