- Enhancement: Add svgcanvas distributions (fixes #301)

master
Brett Zamir 2018-11-22 08:45:31 +08:00
parent 845dbbd7d7
commit 4716a1985f
5 changed files with 21456 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# SVG-Edit CHANGES
# ?
- Enhancement: Add svgcanvas distributions
# 4.0.1
- Fix: Adjust side panel width checking based on device zoom (fixes #298)

21432
dist/svgcanvas-iife.js vendored Normal file

File diff suppressed because it is too large Load Diff

2
dist/svgcanvas-iife.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/svgcanvas-iife.min.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -73,6 +73,23 @@ export default [
getRollupObject({minifying: true, format: 'es'}),
getRollupObject({minifying: false, format: 'es'}),
// **/
...[true, false].map((min) => {
return {
input: 'editor/svgcanvas.js',
output: {
format: 'iife',
sourcemap: min,
name: 'SvgCanvas',
file: `dist/svgcanvas-iife${min ? '.min' : ''}.js`
},
plugins: [
babel({
plugins: ['transform-object-rest-spread']
}),
min ? terser() : null
]
};
}),
...extensionLocaleFiles.map(([dir, file]) => {
const lang = file.replace(/\.js$/, '').replace(/-/g, '_');
return {