Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Question: Failing the build on TypeScript compilation error #202

Closed
kevin-ashton opened this issue Jul 26, 2016 · 3 comments
Closed

Question: Failing the build on TypeScript compilation error #202

kevin-ashton opened this issue Jul 26, 2016 · 3 comments

Comments

@kevin-ashton
Copy link

kevin-ashton commented Jul 26, 2016

Could someone explain how I might fail the build with a compile error. I need to fail for my CI. Ts-loader has a section on this and recommends using the webpack-fail-plugin. However that does not seem to be working for me with awesome-typescript-loader. Has anyone else got this to work? Any thoughts?

@s-panferov
Copy link
Owner

@kevin-ashton webpack-fail-plugin should work. Could you provide some more info about your environment? (versions, webpack.config.js, OS, CI output)

@s-panferov
Copy link
Owner

s-panferov commented Jul 26, 2016

@kevin-ashton another option is to run webpack with --bail flag, but in this case you will see only a first error.

@kevin-ashton
Copy link
Author

@s-panferov I must have had something misconfigured because the webpack-fail-plugin seems to be working just fine for me now. Not sure what I was doing wrong. Sorry about that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants