Skip to content

v1.2.1 runs fine, but v1.2.2 throws error #163

Closed
@detj

Description

@detj

This PR (#161) assumes that a postcss.config.js will always be present. But isn't this file optional? In my project, I was configuring postcss using Webpack 1.0 syntax as mentioned in the Readme.

module.exports = {
  module: {
    loaders: [
      {
        test: /\.css$/,
        loaders: [
          …
          'postcss-loader'
        ]
      }
    ]
  },
  postcss: () => {
    return [
      require('precss'),
      require('autoprefixer')
    ];
  }
}

This works fine in v1.2.1, but breaks in v1.2.2 with the following error

No PostCSS Config found in /path/to/dir

This seems to be a breaking change and not support the Webpack 1.0 configuration model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions