fix language file packaging bug when building bundled html
This commit is contained in:
parent
550fa5f4f5
commit
ed10b1982d
|
@ -135,6 +135,7 @@ gulp.task('process-assets-bundle', ['prepare-fonts', 'prepare-langs', 'prepare-h
|
|||
var lastPointIndex = fileName.lastIndexOf('.');
|
||||
var languageName = fileName.substr(0, lastPointIndex);
|
||||
|
||||
content = content.replace(/\r/g, '');
|
||||
content = content.replace(/\n/g, '\\n');
|
||||
content = content.replace(/"/g, '\\"');
|
||||
result += 'e.setLanguageAsset(\'' + languageName + '\',"' + content + '");';
|
||||
|
|
Reference in a new issue