I'm trying to create an executable
in my node.js project with pkg
and I can create this but without css files.
So, I install pkg
with npm install -g pkg
, in package.json
I add this:
"pkg": {
"scripts": "public/js/*.js",
"assets": "public/css/*.css",
"assets": "views/**/*"
},
It adds the js.files fine and recognizes views, except css file.
My project structure is that:
- public
- css
- app.css
- js
- app.js
- images
- css
- views
In console, I ran the command pkg .
and it generates linux, macos and win executables.
How can I add my css file and image folder too?