S
S
Sergey Burduzha2018-11-13 12:38:15
gulp.js
Sergey Burduzha, 2018-11-13 12:38:15

Why use gulp-conctat when we can use import?

Good afternoon.
What is the advantage of gulp-concat over import?
I'm talking about css files.
For js, I use gulp-rigger.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Ivanov, 2018-11-15
@serii81

No difference except that the gulp-concat module has the ability to edit options.

concatCss(targetFile, options)

targetFile: The relative path of the generated file containing the concatenated css
options: (since 2.1.0)
inlineImports: (default true) Inline any local import statement found
rebaseUrls: (default true) Adjust any relative URL to the location of the target file.
includePaths: (default []) Include additional paths when inlining imports
commonBase: (default to the base property of the first file) Common base path from wich resolving files and urls

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question