Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imports Out of Order in Output #57

Closed
garretto opened this issue Sep 25, 2015 · 2 comments
Closed

Imports Out of Order in Output #57

garretto opened this issue Sep 25, 2015 · 2 comments

Comments

@garretto
Copy link

I'm using the Extract Text Plugin with less-loader to import a main.less files with several imports. I have a reset LESS stylesheet at the beginning which should start at the beginning of the compiled CSS. However, my imports are not being output in order. It works fine when I use the regular lessc compiler.

@jhnns
Copy link
Member

jhnns commented Mar 20, 2017

The order of the extracted text is based on the order of require() calls inside the bundle. If you want to ensure that the output of index.scss is before all the other rules, you need to require("./index.scss") before requiring all the components.

See also webpack-contrib/extract-text-webpack-plugin#200

@jhnns jhnns closed this as completed Mar 20, 2017
@anonymous0374
Copy link

@jhnns no, 'require' does not solve the order issue at all

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

No branches or pull requests

3 participants