mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[deploy] fix for IE
This commit is contained in:
@ -134,11 +134,32 @@ module.exports = (grunt) => {
|
|||||||
src: packageFile.forms.js.postload.options.out,
|
src: packageFile.forms.js.postload.options.out,
|
||||||
dest: packageFile.forms.js.postload.options.out,
|
dest: packageFile.forms.js.postload.options.out,
|
||||||
},
|
},
|
||||||
|
iecompat: {
|
||||||
|
options: {
|
||||||
|
sourceMap: false,
|
||||||
|
},
|
||||||
|
files: [{
|
||||||
|
expand: true,
|
||||||
|
cwd: packageFile.forms.js.babel.files[0].dest,
|
||||||
|
src: `*.js`,
|
||||||
|
dest: packageFile.forms.js.babel.files[0].dest
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
babel: {
|
||||||
|
options: {
|
||||||
|
sourceMap: false,
|
||||||
|
presets: [['@babel/preset-env', {modules: false}]]
|
||||||
|
},
|
||||||
|
dist: {
|
||||||
|
files: packageFile.forms.js.babel.files
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('deploy-app-forms', ['forms-app-init', 'clean:prebuild', /*'imagemin',*/ 'less',
|
grunt.registerTask('deploy-app-forms', ['forms-app-init', 'clean:prebuild', /*'imagemin',*/ 'less',
|
||||||
'requirejs', 'terser', 'concat', 'copy', 'inline', /*'json-minify',*/
|
'requirejs', 'babel', 'terser', 'concat', 'copy', 'inline', /*'json-minify',*/
|
||||||
'replace:varsEnviroment', /*'replace:prepareHelp',*/ 'clean:postbuild']);
|
'replace:varsEnviroment', /*'replace:prepareHelp',*/ 'clean:postbuild']);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,6 +114,16 @@
|
|||||||
"text": "../vendor/requirejs-text/text"
|
"text": "../vendor/requirejs-text/text"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"babel": {
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"expand": true,
|
||||||
|
"cwd": "../deploy/web-apps/apps/documenteditor/forms/",
|
||||||
|
"src": "*.js",
|
||||||
|
"dest": "../deploy/web-apps/apps/documenteditor/forms/ie"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"less": {
|
"less": {
|
||||||
|
|||||||
Reference in New Issue
Block a user