T
T
to_east2018-07-08 12:52:15
Grunt.js
to_east, 2018-07-08 12:52:15

Gruntjs import in source js file?

Hello!
Tell me if there is such a plugin for gruntjs that would be assembled into one bundle using imports in the source code of the javascript file, for example, having a file:

// main.js
@include 'foo.js';
@include 'bar.js';

All this economy is collected in bundle.js, taking into account the connection order.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
to_east, 2018-07-09
@to_east

I found a plugin https://www.npmjs.com/package/grunt-import-js that does what I need, but then I discovered browserify + babelify for myself, this will probably be a more correct approach for building...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question