Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit341b280

Browse files
author
Javier Diaz
committed
feat: added terser plugin to rollup config
1 parent66c04cd commit341b280

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎rollup.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
importvuefrom'rollup-plugin-vue';
22
importcommonjsfrom'rollup-plugin-commonjs';
3+
import{terser}from'rollup-plugin-terser';
34

45
exportdefault[
56
// ESM build to be used with webpack/rollup.
@@ -12,6 +13,7 @@ export default [
1213
plugins:[
1314
vue(),
1415
commonjs(),
16+
terser(),
1517
],
1618
},
1719
// UMD build.
@@ -25,6 +27,7 @@ export default [
2527
plugins:[
2628
vue(),
2729
commonjs(),
30+
terser(),
2831
],
2932
},
3033
// SSR build.
@@ -37,6 +40,7 @@ export default [
3740
plugins:[
3841
vue({template:{optimizeSSR:true}}),
3942
commonjs(),
43+
terser(),
4044
],
4145
},
4246
// Browser build.
@@ -50,6 +54,7 @@ export default [
5054
plugins:[
5155
vue(),
5256
commonjs(),
57+
terser(),
5358
],
5459
},
5560
];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp