How to deploy unplugin-icons on production?
For a SolidStart project, I'm using this library https://github.com/antfu/unplugin-icons as Icon Components. I follow the instructions in the page and have it working on local perfectly.
However as I deploy to production, using Docker, I got this error
The Docker file is
This is due to the fact that unplugin-icons is declared in package.json as devDependency (as told by the library), so when it is installed in PRODUCTION mode, it cannot find the module.
Has anyone got it working on production? What is the proper way to use this library?
However as I deploy to production, using Docker, I got this error
The Docker file is
This is due to the fact that unplugin-icons is declared in package.json as devDependency (as told by the library), so when it is installed in PRODUCTION mode, it cannot find the module.
Has anyone got it working on production? What is the proper way to use this library?
GitHub
Access thousands of icons as components on-demand universally. - GitHub - antfu/unplugin-icons:
Access thousands of icons as components on-demand universally.