After the vue plug-in is released, it cannot be used after download.

wrote a vue toast plug-in: vue-cli 3. 0
used by vue-toast-arif
, but not available after publishing to npm.

after careful inspection, it is found that there is a package.json path problem

first of all, my directory structure is:

clipboard.png

package.json is written as follows

 1%",
    "last 2 versions",
    "not ie <= 8"
  ]
}

if you write the main field as:
"main": "src/lib/index.js"
and then package and publish it, what"s the use of packaging?
I think we should refer to the packaged file. Could you tell me how to write here?

Apr.23,2021

check whether your gitignore ignores dist?


I have the same problem. The packaged file cannot be used

.
Menu