Created
February 9, 2022 07:25
-
-
Save vankop/cd8e40b78b11808417080dab602a2cd8 to your computer and use it in GitHub Desktop.
jspdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { jsPDF } from 'jspdf'; | |
new jsPDF('landscape', 'px', [100, 100]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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