2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/config/rollup.config.app.js
Faris Ansari 32cd6581d1 PDF generation
- /api/method/pdf
- frappe.getPDF
- download using blob url
2018-04-15 00:44:02 +05:30

18 lines
513 B
JavaScript

module.exports = {
input: './www/index.js',
output: {
file: './www/dist/js/bundle.js',
format: 'iife',
name: 'desk',
sourcemap: true,
globals: ['io', 'nunjucks'], // for socketio client, which is imported directly,
},
plugins: [
require('rollup-plugin-commonjs')(),
require('rollup-plugin-json')(),
require('rollup-plugin-html')(),
require('rollup-plugin-node-resolve')({
preferBuiltins: true
}),
],
}