Closed Applelo closed 4 years ago
@Applelo If you can create a repository I appreciate
You can find an example where I was able to reproduce this issue: https://github.com/Applelo/stylelint-webpack-plugin-issue-200
@Applelo come on:
failOnError if enabled will stop compilation and display errors. emitError if enabled will show all errors and warnings as errors. emitWarning if enabled will show all errors and warnings as warnings.
We cannot issue an error to webpack without failing, you can try this:
new StyleLintPlugin({
configFile: Path.resolve(__dirname, '.stylelintrc.json'),
context: Path.join(SrcDirPath, 'stylesheets'),
files: '**/*.scss',
emitWarning: true,
syntax: 'scss',
})
Thanks for your answer, it's this option I was looking for. Sorry for my misunderstanding but your answer is more clear than the readme and the name of the options.
Have a good year.
Expected Behavior
I would like to show stylelint errors but not stop the build of my app.
Actual Behavior
Stylelint webpack plugin stop the compilation of the app when I have an error even if I have set the configuration to prevent that.
Code
How Do We Reproduce?
I can't share my current project but I can make a repository to reproduce the bug.