My question is related to pkg
My project strucutre is like this
node_modules
bootstrap
dist
jquery
dist
popper.js
dist
index.html
package.json
script.js
main.js
According to the documentation , in package.json, I need to add
"pkg": {
"scripts": "build/**/*.js",
"assets": "views/**/*"
}
I didn't understand this line:
"scripts": "build/**/*.js",
In my case should I write something like this ?
"scripts": "node_modules/**/dist/*.js",
Solved. I added this code in package.json:
"pkg": {
"assets": ["index.html",
"script.js", "style.css", "node_modules/jquery/dist/jquery.js", "node_modules/jquery/dist/jquery.min.js", "node_modules/popper.js/dist/umd/popper.min.js", "node_modules/bootstrap/dist/js/bootstrap.min.js", "canvasjs/jquery.canvasjs.min.js"
]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.