DEV Community

Discussion on: Configuring TailwindCSS for Sapper

vannsl profile image
Vannsl Author

I added it to the dependencies since it purge does different things for the development and production mode. Does this also work (when calling the build or export script) when it is a dev dependency?

lud profile image
Ludovic Sforza

Well I suppose it would work.

Dev dependencies are dependencies used to build the project, right ? Regular dependencies are dependencies that would be fetched if the project was used itself as a dependency in a parent projects, whereas dev-dependencies would not be fetched in that case. This is totally independent of the target environment (dev, prod) of the build.

At least this is what I believe.