Skip to content

watch mode shouldn't terminate when a plugin errors #127

@cmnstmntmn

Description

@cmnstmntmn

app.css

@import 'other.css'

postcss.config.js

module.exports = ctx => ({
  map: ctx.options.map,
  plugins: [
      require("postcss-import")
  ]
});

run
postcss app.css -o output.css -w

return

Error: Failed to find 'other.css'
    in [ 
        /Users/....
    ]
    at /Users/.../node_modules/postcss-import/lib/resolve-id.js:48:11

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v7.4.0
npm ERR! npm  v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! test@1.0.0 start: `postcss app.css -o output.css -w`
npm ERR! Exit status 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions