簡體   English   中英

在帶有引導程序的nodejs中使用pkg

[英]Using pkg in nodejs with bootstrap

我的問題與pkg有關

我的項目結構就是這樣

node_modules

引導程序

dist

jQuery的

dist

popper.js

dist

index.html
package.json
script.js
main.js

根據文檔 ,在package.json中,我需要添加

"pkg": {
"scripts": "build/**/*.js",
"assets": "views/**/*"
}

我不明白這一行:

"scripts": "build/**/*.js",

就我而言,我應該寫這樣的東西嗎?

"scripts": "node_modules/**/dist/*.js",

解決了。 我在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"
]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM