Skip to content

Instantly share code, notes, and snippets.

@vankop
Created February 9, 2022 07:25
Show Gist options
  • Save vankop/cd8e40b78b11808417080dab602a2cd8 to your computer and use it in GitHub Desktop.
Save vankop/cd8e40b78b11808417080dab602a2cd8 to your computer and use it in GitHub Desktop.
jspdf
import { jsPDF } from 'jspdf';
new jsPDF('landscape', 'px', [100, 100]);
{
"name": "test-test",
"private": true,
"scripts": {
"build": "webpack"
},
"version": "0.0.0",
"packageManager": "yarn@3.1.1",
"dependencies": {
"jspdf": "^2.5.1",
"webpack": "^5.68.0",
"webpack-cli": "^4.9.2"
}
}
module.exports = {
entry: "./index.js"
mode: "production",
output: {
publicPath: '/',
clean: true,
library: {
type: 'commonjs2',
},
},
target: 'web',
externals: ['axios', 'vue', 'vue-property-decorator', 'vue-property-decorator', 'vue-template-compiler', 'people-ui'],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment