Merge pull request '[deploy] fix inlining scripts for reporter' (#279) from fix/pe-inlined-script into release/v8.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/web-apps/pulls/279
This commit is contained in:
Oleg Korshul
2025-02-02 20:30:39 +00:00

View File

@ -556,11 +556,19 @@ module.exports = function(grunt) {
dest: packageFile.main.reporter.uglify.dest
},
},
inline: {
options: {
uglify: true
},
dist: {
src: '<%= Object.keys(pkg.main.reporter.copy)[0] %>'
}
},
copy: packageFile.main.reporter.copy
});
grunt.task.run(['terser', 'copy']);
grunt.task.run(['terser', 'copy', 'inline']);
});
grunt.registerTask('mobile-app-init', function() {