Skip to content

Instantly share code, notes, and snippets.

@kimniche
Last active August 8, 2018 13:15
Show Gist options
  • Save kimniche/c7a2b1b6de3a926ffe1ee6963c5a3bbc to your computer and use it in GitHub Desktop.
Save kimniche/c7a2b1b6de3a926ffe1ee6963c5a3bbc to your computer and use it in GitHub Desktop.
@kimniche
Copy link
Author

kimniche commented Aug 6, 2018

@kimniche
Copy link
Author

kimniche commented Aug 7, 2018

@kimniche
Copy link
Author

kimniche commented Aug 7, 2018

https://github.com/postcss/postcss-devtools Log execution time for each plugin in a PostCSS instance.

@kimniche
Copy link
Author

kimniche commented Aug 8, 2018

css-loader & style-loader -- is this all it takes to let us to something like
import styles from './ComponentStyles.css' like we do for CRA apps?

https://javascriptplayground.com/css-modules-webpack-react/

css-loader reads in a css file as a string. You could replace it with raw-loader and get the same effect in a lot of situations. Since it just reads the file contents and nothing else, it's basically useless unless you chain it with another loader.

style-loader takes those styles and creates a <style> tag in the page's element containing those styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment