Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Pat Cavit
    @tivac
    Oh good point, clearly I've never actually tried that
    should probably add support for a parser option to allow customizing that
    sigh
    Chiel Kunkels
    @chiel
    you already do
    tadaaaam
    gonna try right away, I'll let you know how I fare
    Pat Cavit
    @tivac
    lmao well I'm glad you know how this software works
    because clearly I'm just faking it
    Chiel Kunkels
    @chiel
    hahaha
    hey man, I'm a professional documentation reader + stackoverflow copy/paster
    hmm that seems to die, let me see what's up
    Chiel Kunkels
    @chiel
    nope I'm an idiot, that works a charm!
    thanks for the help :)
    Pat Cavit
    @tivac
    ok cool, so the real problem here is the webpack (& maybe others?) build not failing in the correct way when a file can't be processed
    Would you be willing to file a bug on that?
    Chiel Kunkels
    @chiel
    yeah, or when a file is missing
    cause the file was missing just now (installing postcss-scss removed a local symlink in node_modules) and it spat out the same error:
    ✖ 「wdm」: TypeError: Cannot read property 'root' of undefined
        at Processor.output (/Users/ckunkels/dev/act-team-js/node_modules/@modular-css/processor/processor.js:266:41)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:94:5)
    Pat Cavit
    @tivac
    bleh
    Chiel Kunkels
    @chiel
    haha :p
    Chiel Kunkels
    @chiel
    @tivac I've filed an issue, thanks so much for your help!
    keb
    @keb
    hi all! is there a way to prefix the generated classNames so that I can whitelist them from purgeCSS? seems like purgecss doesn't see them in my Preact components since are dynamic, so it's eating them up
    or is there some convention they follow? from what I've seen they all start with "mc" but can't be sure from my 2 hours of playing around with this
    Pat Cavit
    @tivac
    They're all mc_ by default yes
    You can specify a namer option that is a function if you want to change the naming algorithm
    keb
    @keb
    thanks @tivac !
    Pat Cavit
    @tivac
    👍🏻
    Chiel Kunkels
    @chiel
    @tivac do you have any experience using modular-css with typescript?
    I've managed to generate some typings files using typed-css-modules, but on the command line
    Pat Cavit
    @tivac
    Nope, not even a little bit!
    I view TS as a necessary evil for some folks and otherwise avoid it because it makes me grouchy :)
    Chiel Kunkels
    @chiel
    haha fair enough, that makes sense
    I do like it, but indeed it requires some more effort to get it to work
    Pat Cavit
    @tivac
    If I can help in some way let me know, sorry :-\
    Chiel Kunkels
    @chiel
    nah totally fine! what I'm missing now is a way to have this happen on-demand while coding stuff, with webpack -w or creating stories :)
    saadsakib
    @saadsakib
    hi, has anyone installed @modular-css/rollup globally? I am having some trouble with it.
    Pat Cavit
    @tivac
    I have not
    what happens?
    saadsakib
    @saadsakib
    I got my problem solved. The import css from "@modular-css/rollup" was not working. Changed the location to point to globally installed folder and it worked.
    Pat Cavit
    @tivac
    Huh, not sure why resolution would be weird for the global location of that one particular module
    Do other namespaced modules resolve correctly?
    saadsakib
    @saadsakib
    I just checked. It seems that I need to explicitly specify global location if I import any package in rollup.config.js. But importing in regular js files doesn't need the global location.
    Pat Cavit
    @tivac
    if you use require() does it work correctly?
    Sounds like rollup's built-in transpilation of import in rollup.config.js is funky
    Heading to bed, glad you got it sorted out!
    saadsakib
    @saadsakib
    nope, require doesn't fix it.
    good night, Pat.
    Ghepes Doru
    @ghepesdoru
    Is it possible to call the API sync?
    Pat Cavit
    @tivac
    Not without doing something scary
    Many postcss plugins are async so it needs to use async APIs throughout
    Ghepes Doru
    @ghepesdoru
    Yes I guessed :) Thank your for your replay