Linaria: Investigate if we can avoid writing the CSS file to disk

Created on 20 Sep 2018  ยท  3Comments  ยท  Source: callstack/linaria

Currently, we write the file to the disk and add it as a require statement in the JS in the webpack loader. We should use memory fs if possible. https://github.com/4Catalyzer/css-literal-loader does it but looks complex. Another approach in https://github.com/callstack/linaria/tree/%40satya164/loader-magic, but it doesn't go through css-loader anymore

webpack ๐Ÿ“ฆ approved โœ… investigation ๐Ÿ”Ž

Most helpful comment

Hey if ya'll are still interested in this, i'd be happy to extract out the underlying webpack plugin into a separate package ๐Ÿ‘

All 3 comments

Hey if ya'll are still interested in this, i'd be happy to extract out the underlying webpack plugin into a separate package ๐Ÿ‘

@jquense That'll be great! It'll also be useful for other use cases I imagine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahuglajbclajep picture ahuglajbclajep  ยท  4Comments

trongthanh picture trongthanh  ยท  3Comments

egoist picture egoist  ยท  7Comments

amankkg picture amankkg  ยท  4Comments

hemlok picture hemlok  ยท  6Comments