-
Notifications
You must be signed in to change notification settings - Fork 513
[Webpack 4] Wrong order of entries when using less-loader and @import #737
Comments
Or is this a problem with |
Possibly related to #710 ? |
I get the same using:
The funny thing is when I edit CSS file or file when I import the styles everything is correct then (after reload). :) Reproduction:
I can open separate issue since I have reproduction steps, but thought it might be the same problem. :) |
TL;DR Use The |
@michael-ciniawsky , however, How to use |
Uh oh!
There was an error while loading. Please reload this page.
Example
As you can see, there are two entry points:
The
bootstrap.less
uses@import
to import various bootstrap components (in this case,bootstrap-badge.less
).Result
Expected
The
bootstrap.less
file is the first entry, so whatever is output in that less file should be included first, yet it's added to the end.It seems like it's getting confused when you use an
@import
inside the less file.In webpack 3, the order is as expected.
The text was updated successfully, but these errors were encountered: