Skip to content

Commit

Permalink
adjust postcss-import options for nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Aug 17, 2017
1 parent b4847b7 commit a721232
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/common/options.js
Expand Up @@ -86,8 +86,15 @@ Options.from = function (_options) {
options.build.postcss = Object.assign({
sourceMap: options.build.cssSourceMap,
plugins: {
// https://github.com/postcsxs/postcss-import
'postcss-import': {},
// https://github.com/postcss/postcss-import
'postcss-import': {
root: options.rootDir,
path: [
options.srcDir,
options.rootDir,
options.modulesDir
]
},
// https://github.com/postcss/postcss-url
'postcss-url': {},
// http://cssnext.io/postcss
Expand Down

0 comments on commit a721232

Please sign in to comment.