Skip to content

Commit

Permalink
fix postcss config
Browse files Browse the repository at this point in the history
  • Loading branch information
yibuyisheng committed Aug 31, 2017
1 parent a56d4c6 commit 3b395e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion template/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ exports.cssLoaders = function (options) {
}
}

var postcssLoader = {
loader: 'postcss-loader'
}

// generate loader string to be used with extract text plugin
function generateLoaders (loader, loaderOptions) {
var loaders = [cssLoader]
var loaders = options.usePostCSS !== false ? [cssLoader, postcssLoader] : [cssLoader]
if (loader) {
loaders.push({
loader: loader + '-loader',
Expand Down

0 comments on commit 3b395e5

Please sign in to comment.