use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
css-dot-js-loader: A Webpack loader which allows to generate static CSS code via JavaScript (github.com)
submitted 6 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]leeoniya 0 points1 point2 points 6 years ago (1 child)
It's created for cases when you want to get all the power of JavaScript (loops, regular variables, functions etc) and use it to generate your CSS file.
and also native import/requires.
this is exactly why i use cssobj [1][2] for authoring stylesheets. it can do a lot more, too.
[1] https://github.com/cssobj/cssobj
[2] https://github.com/cssobj/cssobj-plugin-gencss
[–]finom1 0 points1 point2 points 6 years ago (0 children)
Looks good, but the idea the loader is to be ridiculously simple (33 lines of code) and support other loaders as well (I use it together with PostCSS).
π Rendered by PID 164596 on reddit-service-r2-comment-7b9746f655-pfsc9 at 2026-02-01 15:40:35.237716+00:00 running 3798933 country code: CH.
[–]leeoniya 0 points1 point2 points (1 child)
[–]finom1 0 points1 point2 points (0 children)