Cant see pkg folder and also files inside /pkg folder #3935
Unanswered
jenithainbaraj
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
With "snowpack": "^2.18.5", with snowpack install command , was able to see all the files inside the web_modules folder whichever I mentioned inside "install" config options.
Now Using "snowpack": "^3.3.7", with snowpack build command.
I am trying to use the files that is installed by snowpack from pkg folder.
Working fine with no errors , But need to access files inside pkg folder from other files ,
I am not able to see the pkg folder.
Can someone help how can I configure to see the pkg folder with files which is mentioned inside the knownEntrypoints.
Below is my config file.
/** @type {import("snowpack").SnowpackUserConfig } /
export default {
optimize: {
/ Example: Bundle your final build: */
"bundle": true,
},
packageOptions: {
"source": "local",
"knownEntrypoints":[
"chart.js",
"chartjs-plugin-labels"
],
"dest": "./ui/web_modules",
"sourceMap": false,
"env": {
"NODE_ENV": "production"
}
},
buildOptions: {
"out": "ui/web_modules",
"metaUrlPath": "/",
"sourceMap": false
},
"alias": {
"chart.js": "./node_modules/chart.js/dist/Chart.js"
}
};
Thank You
Jenitha
Beta Was this translation helpful? Give feedback.
All reactions