You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This output does not produce the desired output as the shorthand property border: 1px solid #000 overrides the individual border-top-width, border-left-width styles and incorrectly styles the component. In this case, the component would have a 1px border around each side, which is not what the developer intended.
What is the expected behavior?
Not exactly sure of the extent to which this changes things, but in this case I think if the minifier changed the long form into:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
given an input CSS style such as:
and configuring the css-loader in webpack.config.js to be:
The loader outputs:
This output does not produce the desired output as the shorthand property
border: 1px solid #000
overrides the individualborder-top-width
,border-left-width
styles and incorrectly styles the component. In this case, the component would have a 1px border around each side, which is not what the developer intended.What is the expected behavior?
Not exactly sure of the extent to which this changes things, but in this case I think if the minifier changed the long form into:
with the shorthand first, this will compile to correct CSS. The top and left borders have a width of 0 as expected.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
css-loader: 0.28.10
Webpack: 3.11.0
Node.js: 8.9.0
Operating System: Mac OS Sierra 10.12.6
The text was updated successfully, but these errors were encountered: