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

Getting contents without loading #55

Closed
nwhite89 opened this issue Feb 27, 2015 · 2 comments
Closed

Getting contents without loading #55

nwhite89 opened this issue Feb 27, 2015 · 2 comments

Comments

@nwhite89
Copy link

I'm wanting to be able to get the contents within JS I can use css-loader I know and that passes me back an array with a nested array which doesn't feel very nice as a small change could quite easily break that.

Can you think of anything to be able to get the contents straight away because I am wanting to do my own loading without having to use style-loader?

@jhnns
Copy link
Member

jhnns commented Mar 3, 2015

The sass-loader just returns a string containing css so you should be free to do whatever you want. However, I do recommend that you use the css-loader, so that all referenced images are written to the output folder as well.

I don't know anything about the css-loader returning arrays or something. I thought it would also just return a string (but I also haven't used the output directly yet).

@nwhite89
Copy link
Author

nwhite89 commented Mar 3, 2015

Yeah I think I will need to use css-loader come to think of it because of images etc. however, css-loader does do an array but I will take a look at css-loader when it comes to it thanks (feel free to close if you wish) thanks @jhnns

@jhnns jhnns closed this as completed Mar 3, 2015
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

2 participants