by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 25 20:04

    ai on master

    Clean up tests (compare)

  • Sep 25 19:56

    ai on master

    Add Once and OnceExit events (compare)

  • Sep 25 17:19
    ai closed #1427
  • Sep 25 17:19
    ai commented #1427
  • Sep 25 17:19

    ai on master

    Update link to Grunt integration (compare)

  • Sep 25 17:13
    Hlsgs opened #1427
  • Sep 24 18:42
    silverwind commented #1426
  • Sep 24 18:41
    silverwind commented #1426
  • Sep 24 18:34
    ai closed #1426
  • Sep 24 18:34
    ai commented #1426
  • Sep 24 18:32
    silverwind commented #1426
  • Sep 24 18:31
    silverwind commented #1426
  • Sep 24 18:30
    silverwind commented #1426
  • Sep 24 18:06
    ai commented #1426
  • Sep 24 18:03
    ai labeled #1424
  • Sep 24 18:03
    ai commented #1424
  • Sep 24 14:02
    silverwind edited #1426
  • Sep 24 13:20
    silverwind edited #1426
  • Sep 24 13:06
    silverwind edited #1426
  • Sep 24 13:04
    silverwind opened #1426
Andrey Sitnik
@ai
@evilebottnawi
Evilebot Tnawi
@evilebottnawi
@ai hm, okay, seems we need a new option, it would be nice to think about it, which name would you prefer or design?
Andrey Sitnik
@ai
@evilebottnawi what do you think about map.absolute?
Honestly, I can release map.absolute in 7.1
do we need sourceRoot in this case?
Evilebot Tnawi
@evilebottnawi
@ai I thought about it, but then how do we combine it with sourceRoot? in theory, some may want this
No we don't need sourceRoot in this case
Andrey Sitnik
@ai
@evilebottnawi I will create map.absolute option task in Cult of Martians today
Evilebot Tnawi
@evilebottnawi
@ai Great, I might be able to find the time for this, but only on the next week
Ryan Zimmerman
@RyanZim
@ai When did this change happen? postcss/postcss-cli#324
Andrey Sitnik
@ai
Have not idea :( maybe two different PostCSS instance in the system?
Ryan Zimmerman
@RyanZim
@ai I'm asking when result.map started to be a SourceMapGenerator instead of a string?
Jonathan Neal
@jonathantneal
@dennis-eichardt-spring I’ll look into that.
Andrey Sitnik
@ai
@RyanZim result.map is a SourceMapGanarator according to JSDoc http://api.postcss.org/Result.html
Jonathan Neal
@jonathantneal
For some reason, I hadn’t been getting notifications from Gitter for the last MONTH. Sorry for the] missed questions.
Jonathan Neal
@jonathantneal
@dennis-eichardt-spring, I would probably need to know more about your setup. Thanks to you sharing the error message, I can tell you that the throw came from the part where PostCSS Preset Env writes to exports. If you are doing any custom exports — areas you might be using exportTo — then I woud investigate there further. If you get more information and find yourself stuck, please feel free to post a follow up, and I’ll see how I can help.
Jonathan Neal
@jonathantneal
@RyanZim, when I read the blame log, it looks like PostCSS’s .map has been a SourceMapGenerator for about 4 years; since before PostCSS 7x. However, I suspect the issue came from the source-map project. It is still in v0 and they introduce breaking changes to MINOR releases.
Ryan Zimmerman
@RyanZim
Hmm, postcss depends on source-map with a ^ range, which will not update minor releases for v0
Could also be a change with Node, maybe they used to cast parameters to Strings, and no longer do.
Anyhow, don't really care; just wanted to make sure postcss itself hadn't explicitly broken semver
Andrey Sitnik
@ai

@RyanZim

Hmm, postcss depends on source-map with a ^ range, which will not update minor releases for v0

We can’t update source-map. Mozilla moved to async API, which is not compatible with current PostCSS API. I even didn’t found a way to update API in PostCSS 8.

Babel has the same problem and keep old version.

Anyhow, don't really care; just wanted to make sure postcss itself hadn't explicitly broken semver

Yeap, this issue is really strange. You are right about reporting it.

But I have no idea how it happend.

Evilebot Tnawi
@evilebottnawi
webpack and many other tools have the same problem too, no good response from source-map developers
Jonathan Neal
@jonathantneal
Is there an alternative tool?
CC-4477
@CC-4477
hello everyone, I'm trying to set up PostCSS with my Github Pages site. is there a guide on how to do this? I can only find things concerning Sass
Andrey Sitnik
@ai
@CC-4477 the easiest way is to add Parcel build tool (it already have good PostCSS support), create a postcss.config.js config with the list of th plugins and deploy Parcel dist/ folder to GitHub Pages
here is an example guide of Parcel + GitHub Pages https://www.sitepoint.com/parcel-hyperapp-github-pages/
guide of adding PostCSS to Parcel https://parceljs.org/css.html#postcss
And I recommend to add Stylelint (PosTCSS-based tool to find mistakes in your CSS) to your text editor according to this guide https://hackernoon.com/setting-up-css-stylelint-on-visual-studio-code-85s32l0
CC-4477
@CC-4477
thanks! I'll take a look
Carlo Ascani
@2pxsolidblack_gitlab
Hi all, may be possible to someway make a custom media available everywhere in every css file I have?
Gavin McFarland
@limitlessloop

Hi @2pxsolidblack_gitlab something like this plugin might help you, there might be others.

https://www.npmjs.com/package/postcss-global-vars

Carlo Ascani
@2pxsolidblack_gitlab
thx!
Andrey Sitnik
@ai
@RyanZim I found why we recently have the problem with result.map is not string. It happens because Node.js < 14 call .toString() on options passed to writeFile, but Node.js 14 starts to excplicitly check that it is a string
Ryan Zimmerman
@RyanZim
That's what I thought might be the case.
Jonathan Lorimer
@JonathanLorimer
Has anyone solved the issue with postcss-imports and postcss-mixins?
Kirill Lyzhenkoff
@Lyzhenkoff
Hi!I have problems with adding images to postcss.I write a right link to image but I have error
Andrey Sitnik
@ai
@JonathanLorimer what issue do you talk about? Post your PostCSS config, CSS input, current and expected output
@Lyzhenkoff show you input CSS, PostCSS plugins and the error
Jonathan Lorimer
@JonathanLorimer
I think I actually sorted it out. I am doing a big port from webpack 3 to webpack 5 and somehow I the old configuration they were defining mixins globally? I just needed to add the correct imports. Thanks for the response!
Brian Hogue
@syzygy333
Hi, I'm using postcss and precss, which includes postcss-advanced-variables and in my guplfile I'm piping precss first and I keep getting Could not resolve the variable .... Didn't find much helpful googling around.
Andrey Sitnik
@ai
@syzygy333 sorry, have no time or experience in this plugin. Try to look into the sources. Most of PostCSS plugins are very simple inside
Jonathan Neal
@jonathantneal
I originally created that plugin. Feel free to DM me if you have to debug it. I had been looking for other maintainers for years. I’m still willing to offer assistance.
Mattias Hällkvist
@emattias
Does postcss have an api to check if a value is a color value?
Andrey Sitnik
@ai
@emattias PostCSS core has no this API
but postcss-value-parser may have it
Mattias Hällkvist
@emattias
@ai thanks! Seems like postcss-value-parser doesnt support scss. Is that corrects?
Andrey Sitnik
@ai
@emattias nope :(
but I am not sure
Mattias Hällkvist
@emattias
ok, how can I with postcss get the value of a sass variable?