Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question