-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrollup.config.js
More file actions
34 lines (33 loc) · 879 Bytes
/
rollup.config.js
File metadata and controls
34 lines (33 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import uglify from 'rollup-plugin-uglify-es'
import babel from 'rollup-plugin-babel'
import vue from 'rollup-plugin-vue'
import replace from 'rollup-plugin-replace'
import json from 'rollup-plugin-json'
export default {
entry: `src/index.js`,
dest: `dist/vue-html2pdf.js`,
format: 'amd',
moduleName: 'VueHtml2pdf',
plugins: [
json(),
vue({
css: true
}),
replace({
'process.env.NODE_ENV': JSON.stringify( 'production' )
}),
resolve({
browser: true,
extensions: ['.vue', '.js', '.json']
}),
commonjs(),
babel({
exclude: 'node_modules/**'
}),
uglify()
],
external: ['vue','html2pdf'],
sourceMap: false
}