Is it possible to test my app without using require.js in order to assess the performance and file size if all files were concatenated into a single one?
I'm contemplating using gulp to gather all *.js files in the app, running a gulp-replace to eliminate the
define([...], function (...) { });
wrapper from the script, and then merging them into a single *.js file.
Could gulp-replace handle this task, and if so, what would be the regex pattern required? Below is an example of a *.js file:
'use strict';
define(['file1', 'file2', 'file3'], function (param1, param2, param3) {
//...
//code that should remain after gulp-replace
//...
});