A
A
Andrey Khokhlov2014-10-25 15:47:34
Grunt.js
Andrey Khokhlov, 2014-10-25 15:47:34

How to organize files in a project with grunt (gulp)?

Now something like the following structure
- assets
-- dev
--- less
--- js
--- img
-- build
--- css
---- production.min.css
--- js
---- libs
---- production.min.js
--- img
Respectively, the assembly goes something like this:
1. In dev/img there are svg and png icons, we make base64, png sprites, etc. from them, we put sprites in build/img
2. Less > build/production.css > build/production.min.css
3. All js > build/production.js > build/productions.min.js
4. All graphics in build/img are optimized
In general, everything is quite convenient, but it confuses me that I upload images that do not require anything other than optimization immediately in build. And also right away in build there are js / libs files: these are libraries that must be included in separate files, for example, modernizr in the head of the page, or jquery, which we will load only if Google is suddenly unavailable ...
Share your practices for organizing files in such projects ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-10-25
@andrhohlov

How to organize files in a project with grunt (gulp)?

As you or the team in which you work is more convenient.

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question