Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

@neutrinojs/stylelint doesn't set failOnError #971

Closed
edmorley opened this issue Jun 29, 2018 · 0 comments
Closed

@neutrinojs/stylelint doesn't set failOnError #971

edmorley opened this issue Jun 29, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@edmorley edmorley added the bug label Jun 29, 2018
@edmorley edmorley added this to the v9 milestone Jun 29, 2018
@edmorley edmorley self-assigned this Jul 1, 2018
edmorley added a commit that referenced this issue Jul 13, 2018
Previously the only way to override `mode` was by passing `--mode` on
the command line. However this is not possible with all tools, since
some (such as karma) reject unrecognised arguments.

Now:
* `mode` is derived from `NODE_ENV` if `--mode` wasn't passed, and
  !production `NODE_ENV` falls back to mode `development`.
* if `--mode` is passed, it takes priority over `NODE_ENV`.
* if neither `mode` nor `NODE_ENV is defined, then `NODE_ENV` is set
  to `production`, however `mode` is left undefined, which causes
  webpack to output a helpful warning about relying on defaults.
* the template test runner configs set a default `NODE_ENV` of `test`.
* `@neutrinojs/stylelint` now also correctly sets `failOnError`.

Fixes #900.
Fixes #971.
Closes #955.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant