dynamsoft-dwt / vue-document-scan-load-readBarcode

This sample demonstrates how to scan or load documents with Dynamic Web TWAIN and then read barcodes off them
2 stars 0 forks source link

i get ResourcesPath #2

Closed menphurk236 closed 2 years ago

menphurk236 commented 3 years ago

Dynamsoft.DWT.ResourcesPath = "dwt-resources"

packege.json "scripts": { "dev": "ncp node_modules/dwt/dist static/dwt-resources && nuxt", "build": "nuxt build", "start": "nuxt start", "generate": "nuxt generate && ncp node_modules/dwt/dist dist/dwt-resources" },

i use framwork nuxt js but error get path dwt-resources help me please!!!

lincoln2018 commented 3 years ago

packege.json "scripts": { "dev": "ncp node_modules/dwt/dist static/dwt-resources && nuxt", "build": "nuxt build", "start": "nuxt start", "generate": "nuxt generate && ncp node_modules/dwt/dist static/dwt-resources" },

change "dist/dwt-resources" to "static/dwt-resources" in packege.json, rebuild

ref url: https://nuxtjs.org/docs/2.x/directory-structure/static/