Comments (18)
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.
👋 Do you see a red logo when postcss -v
from postcss-cli.
@michael-ciniawsky Yep. It says 2.6.0.
from postcss-cli.
Version printed should still display 2.6.0 since it's not updated yet
from postcss-cli.
I see.
from postcss-cli.
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.
I tried with just postcss --use precss src/**/*.pcss --dir out/
but still got Cannot find module 'src/**/*.pcss'
from postcss-cli.
@aesopturtle Try postcss src/**/*.pcss --use precss --dir out/
from postcss-cli.
@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.
So there are 2 issues here:
- The output doesn't have the same folder structure as the input when used with pattern.
- I don't seem to be able to specify the output file extension when using --dir.
- This is a known issue with both v2 & the development version; issue is here: #30.
- Opened a new issue for that here: #79.
from postcss-cli.
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.
@RyanZim Thanks :)
from postcss-cli.
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.
@RyanZim The output file should have the same name but with an extension following --ext
(?) option.
from postcss-cli.
@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.
@michael-ciniawsky 😕 What are you trying to say?
from postcss-cli.
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.
@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)
- Change filenames for multiple HOT 2
- npm script fails with "SyntaxError: Cannot use import statement outside a module" HOT 1
- Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: HOT 2
- Use existing sourcemaps for .sass HOT 2
- autoprefixer not applied to input file outside of pwd HOT 2
- **/*.postcss glob doesn't seem to match 2 directories deep
- postcss-cli 9.1.0 watch cannot be run without tty HOT 2
- Wrong postcss.config.js file fails silently HOT 1
- Getting cannot use import statement outside a module HOT 1
- Bundling/concatenation of css files is not allowed? HOT 1
- postcss-Cli & postcss-less HOT 1
- Compile files to the same directory HOT 3
- How do I make 2 different configuration ?? HOT 1
- PostCSS not having any effect HOT 2
- UTF-16 instead of UTF-8 HOT 1
- Move to `postcss-load-config` 5.0 HOT 2
- Error when project path includes space HOT 5
- Fails silently when config not found HOT 1
- Command no found after upgrade to 11 HOT 2
- glob pattern is not working as expected on linux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-cli.