The lib folder has a main.js file that imports the module:

// код основного файла require.config({ baseUrl: './../', paths: { module: './lib/module' } }); require('module', (module) => { //... } 

 // Код модуля function f() { экспортируемая функция } define(() => { return f; }); 

How to use grunt to create one js file that can be attached without any libraries, which will be executed in the same way as main.js was done with requirejs?

  • any gulp type collector, grunt, webessentials, a visual studio assembler - a bunch of options - Grundy
  • @Grundy can be more specific, how to do it? Simply, all these tools, as I understand it, perform a lot of functions, namely, I did not find the requirejs module assembly. - Yuri
  • it all depends on the particular tool. At the moment the question is too wide. - Grundy
  • @Grundy, it would be great to make out the steps how to do this task with the simplest of them - Yuri
  • And which one is your easiest? :-) - Grundy

0