- Enhancement: Add svgcanvas distributions (fixes #301)
parent
845dbbd7d7
commit
4716a1985f
|
@ -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)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue