Skip to content

Support for custom parsers (like postcss-scss) #96

@danieldiekmeier

Description

@danieldiekmeier

If I use inline comments, like

.u-limiter,
  width: 960px;
  // center this
  margin: {
    left: auto;
    right: auto;
  }
}

postcss-import throws an error:

events.js:141
      throw er; // Unhandled 'error' event
      ^
Error: postcss-import: [removed].scss:4:6: Unknown word
  width: 960px;
  // center this
     ^
  margin: {

I thought I could get this under control by using a plugin when calling postcss-import:

[gulp]
.pipe(postcss([
      require('postcss-import')({
        glob: true,
        plugins: [
          require('postcss-inline-comment')
        ]
      }),
[more gulp]

but I had no luck. For now, I can live without inline comments, but what would be the best way for me to get this working?

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