Code Monkey home page Code Monkey logo

Comments (18)

RyanZim avatar RyanZim commented on August 25, 2024 1

Not in favor of that; since the --ext option will only be used in a few cases. Also would be confusing upgrading from v2.

from postcss-cli.

michael-ciniawsky avatar michael-ciniawsky commented on August 25, 2024

👋 Do you see a red logo when postcss -v

from postcss-cli.

sorawit-eth avatar sorawit-eth commented on August 25, 2024

@michael-ciniawsky Yep. It says 2.6.0.

from postcss-cli.

michael-ciniawsky avatar michael-ciniawsky commented on August 25, 2024

Version printed should still display 2.6.0 since it's not updated yet

from postcss-cli.

sorawit-eth avatar sorawit-eth commented on August 25, 2024

I see.

from postcss-cli.

michael-ciniawsky avatar michael-ciniawsky commented on August 25, 2024

When you see the red postcss logo you are on v3@beta :) Place the postcss.config.js in the root of your project for getting started

from postcss-cli.

sorawit-eth avatar sorawit-eth commented on August 25, 2024

I tried with just postcss --use precss src/**/*.pcss --dir out/ but still got Cannot find module 'src/**/*.pcss'

from postcss-cli.

RyanZim avatar RyanZim commented on August 25, 2024

@aesopturtle Try postcss src/**/*.pcss --use precss --dir out/

from postcss-cli.

sorawit-eth avatar sorawit-eth commented on August 25, 2024

@RyanZim That works! :D
But it still doesn't copy the folder structure. All files in subfolders are output under the same folder (out/) and the extension remains pcss.

from postcss-cli.

RyanZim avatar RyanZim commented on August 25, 2024

So there are 2 issues here:

  1. The output doesn't have the same folder structure as the input when used with pattern.
  2. I don't seem to be able to specify the output file extension when using --dir.
  1. This is a known issue with both v2 & the development version; issue is here: #30.
  2. Opened a new issue for that here: #79.

from postcss-cli.

sorawit-eth avatar sorawit-eth commented on August 25, 2024

As far as I remember, if the input has multiple files, either -d or -r must be specified, right? How about... if -d or -r is not specified, we output at its own folder?

from postcss-cli.

sorawit-eth avatar sorawit-eth commented on August 25, 2024

@RyanZim Thanks :)

from postcss-cli.

RyanZim avatar RyanZim commented on August 25, 2024

As far as I remember, if the input has multiple files, either -d or -r must be specified, right? How about... if -d or -r is not specified, we output at its own folder?

@aesopturtle Not sure what you mean; what would the files be named?

from postcss-cli.

sorawit-eth avatar sorawit-eth commented on August 25, 2024

@RyanZim The output file should have the same name but with an extension following --ext(?) option.

from postcss-cli.

michael-ciniawsky avatar michael-ciniawsky commented on August 25, 2024

@ai Are options an the result {Object} ?
@RyanZim Maybe we can use it for getting the dirname from options.from or otherwise I need to find something else

from postcss-cli.

RyanZim avatar RyanZim commented on August 25, 2024

@michael-ciniawsky 😕 What are you trying to say?

from postcss-cli.

michael-ciniawsky avatar michael-ciniawsky commented on August 25, 2024

For nested output directory support we need to get the dirname of the src/**/*.css glob => /**/ somewhere, just thinking out loud where :D at best

from postcss-cli.

RyanZim avatar RyanZim commented on August 25, 2024

@michael-ciniawsky Here was a PR for v2: #31. That may give you some ideas.

At any rate, I'm going to close this issue since discussion has moved elsewhere.

@michael-ciniawsky If you want to do more thinking out loud, do it on gitter, there are plenty of helpful people there. 😉

from postcss-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.