Open mattfraley1 opened 6 years ago
I'm hitting the same issue (same bootstrap 4.1 from NPM package).
@warn "Some warning";
gets threated as an error blocking compilation.
@madskristensen Any idea on how to fix this?
Thank you.
I also encountered this issue - it seems that WebCompiler treats a warning like an error and prevents the file from being compiled.
As a temporary fix, what I and my co-worker did in our instance was commented out the @warn
line in node_modules/bootstrap/scss/mixins/_text-hide.scss .
// CSS image replacement
@mixin text-hide() {
// stylelint-disable-next-line font-family-no-missing-generic-family-keyword
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
// Throws error in Mads' Webcompiler plugin
//@warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
}
HTH
Installed product versions
Description
When comping bootstrap 4.1 I get an error, "WARNING: The 'text-hide()' mixin has been deprecated..." Even though it says warning it is being treated as an error and stops compilation. I have commented out the SCSS warning and everything compiles fine.
I bring this up because it doesn't seem like it should treat the warning as an error. I was also wondering if it is possible to change the configuration file somehow to ignore errors and/or warnings?