- Fix: Add images (and references) for fallback (#135)

- Fix (canvg): blur export fix
- i18n (Chinese): A few fixes (#135)
- Optimize: Further image optimizing
- Refactoring: Avoid custom JS substitution syntax
- Refactoring: Reorder default extension list
This commit is contained in:
Brett Zamir
2018-05-28 22:00:20 +08:00
parent 5ad6e6ba48
commit acb57c1609
111 changed files with 372 additions and 155 deletions

View File

@@ -14,8 +14,19 @@ const plugins = [
},
{
match: /svgedit-config-es\.js/,
test: '// <CONDITIONAL-ADD>: ', // Sets `svgEditor` global for extensions/locales
replace: ''
test: "import svgEditor from './editor/svg-editor.js';", // Sets `svgEditor` global for extensions/locales
replace: `import svgEditor from './editor/svg-editor.js';
window.svgEditor = svgEditor;
window.svgEditor.modules = false;
`
},
{
match: /xdomain-svgedit-config-es\.js/,
test: "import svgEditor from './svg-editor.js';",
replace: `import svgEditor from './svg-editor.js';
window.svgEditor = svgEditor;
window.svgEditor.modules = false;
`
}
]
}),