E
E
Extramezz2016-07-15 15:18:02
JavaScript
Extramezz, 2016-07-15 15:18:02

Gulp js import plugin?

Good afternoon! Please tell me if there is a gulp plugin for such needs:
---- Available

//file1.js
alert(1);

//file2.js
alert(2);

//result1.js
//Специальная конструкция этого плагина
@import "file1.js", "file2.js";

//result2.js
//Специальная конструкция этого плагина
@import "file1.js";

---- It is necessary, by setting this plugin on the result1.js and result2.js files, to get:
//From result1
alert(1);
alert(2);

//From result2
alert(1);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bingumd, 2016-07-15
@Extramezz

gulp-rigger

A
Alexey Ukolov, 2016-07-15
@alexey-m-ukolov

It's not very clear from the question, but it looks like you're looking for browserify . For gulp, of course, there is a plugin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question