Reopened from postcss/postcss#958
I am trying to compile multiple *.pcss files and have the *.css output sit in the same directory. For example, I have the following structure:
src
-- test1
---- 1.pcss
-- test2
---- 2.pcss
-- test3
---- 3.pcss
When running:
postcss --use precss src/**/*.pcss --dir out/
I expect:
src
-- test1
---- 1.pcss
-- test2
---- 2.pcss
-- test3
---- 3.pcss
out
-- test1
---- 1.css
-- test2
---- 2.css
-- test3
---- 3.css
But what I got is:
src
-- test1
---- 1.pcss
-- test2
---- 2.pcss
-- test3
---- 3.pcss
out
-- 1.pcss
-- 2.pcss
-- 3.pcss
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.
Any suggestion please?
By the way, it would be great if such options are also available in a config file as that's where I actually configure the options :)
I am trying to compile multiple
*.pcssfiles and have the*.cssoutput sit in the same directory. For example, I have the following structure:When running:
I expect:
But what I got is:
So there are 2 issues here:
--dir.Any suggestion please?
By the way, it would be great if such options are also available in a config file as that's where I actually configure the options :)