P
P
Pavel2015-08-25 09:09:39
JavaScript
Pavel, 2015-08-25 09:09:39

How to solve a problem with paths in a project using grunt?

there was a need to collect css and minify it. The problem is that different css files are located in different subfolders, for example
app/
css/
samefolder/style.css
folder2/folder3/file2.css
, etc.
and next to these css there may be dependent pictures.
How to assemble everything so beautifully and not edit a bunch of paths with your hands?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Belikov, 2015-08-25
@igorbelikov

Probably when you specify the path to the processed files, specify something like this :-)

[
  'app/*.css',
  'css/*.css',
  'samefolder/style.css',
  'folder2/folder3/file2.css'
]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question