import lost from 'lost'
import postcssImport from 'postcss-import'
import postcssCssnext from 'postcss-cssnext'
import resolveStyleImport from '../util/resolveStyleImport'

export default options => {
  const styleResolver = resolveStyleImport({
    from: options.basePath
  })

  return wp => {
    const importer = postcssImport({
      addDependencyTo: wp,
      resolve: styleResolver
    })

    return [
      importer,
      lost,
      postcssCssnext
    ]
  }
}

import lost from 'lost'
import postcssImport from 'postcss-import'
import postcssCssnext from 'postcss-cssnext'
import resolveStyleImport from '../util/resolveStyleImport'

export default options => {
  const styleResolver = resolveStyleImport({
    from: options.basePath
  })

  return wp => {
    const importer = postcssImport({
      addDependencyTo: wp,
      resolve: styleResolver
    })

    return [
      importer,
      postcssCssnext,
      lost
    ]
  }
}

Change order of PostCSS plugins to fix build error
Change order of PostCSS plugins to fix build error
