File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 90
90
" lib/p5.min.js" ,
91
91
" lib/p5.js" ,
92
92
" lib/p5.esm.js" ,
93
+ " lib/p5.esm.min.js" ,
93
94
" translations/**" ,
94
95
" types/**"
95
96
],
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ rmSync("./dist", {
89
89
} ) ;
90
90
91
91
export default [
92
- //// Unminified and ESM library build ////
92
+ //// Library builds (IIFE and ESM) ////
93
93
{
94
94
input : 'src/app.js' ,
95
95
output : [
@@ -109,6 +109,25 @@ export default [
109
109
plugins : [
110
110
bundleSize ( 'p5.esm.js' )
111
111
]
112
+ } ,
113
+ {
114
+ file : './lib/p5.esm.min.js' ,
115
+ format : 'esm' ,
116
+ banner,
117
+ sourcemap : 'hidden' ,
118
+ plugins : [
119
+ terser ( {
120
+ compress : {
121
+ global_defs : {
122
+ IS_MINIFIED : true
123
+ }
124
+ } ,
125
+ format : {
126
+ comments : false
127
+ }
128
+ } ) ,
129
+ bundleSize ( 'p5.esm.min.js' , true )
130
+ ]
112
131
}
113
132
] ,
114
133
treeshake : {
You can’t perform that action at this time.
0 commit comments