This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
anot
Archived
1
0
Fork 0
anot/rollup.config.prod.js

33 lines
612 B
JavaScript
Raw Normal View History

2020-08-13 15:58:18 +08:00
/**
* 生产版配置
* @author yutent<yutent.io@gmail.com>
* @date 2020/08/13 15:28:39
*/
2020-08-12 18:25:03 +08:00
2020-08-13 15:58:18 +08:00
import uglify from '@bytedo/rollup-plugin-uglify'
import esm from './lib/plugin.esm'
import copyright from './copyright'
export default [
2020-08-12 18:25:03 +08:00
{
input: 'src/anot.js',
output: {
file: 'dist/anot.js',
2020-08-13 15:58:18 +08:00
format: 'iife',
banner: copyright,
name: '_Anot'
2020-08-12 18:25:03 +08:00
},
2020-08-13 15:58:18 +08:00
plugins: [esm(), uglify()]
2020-08-12 18:25:03 +08:00
},
{
input: 'src/anot.touch.js',
output: {
file: 'dist/anot.touch.js',
2020-08-13 15:58:18 +08:00
format: 'iife',
banner: copyright,
name: '_Anot'
2020-08-12 18:25:03 +08:00
},
2020-08-13 15:58:18 +08:00
plugins: [esm(), uglify()]
2020-08-12 18:25:03 +08:00
}
]