-
-
Notifications
You must be signed in to change notification settings - Fork 199
Closed as not planned
Labels
Description
Hello,
I bought several template themes and both are coming with their dependencies & images...
Some of theme even include a package.json file.
So now, what is the best way to include them in my project ?
Here are my known choices
- Include their CSS/JS directly in my twig template. But what about dependencies ? Should I use a separate webpack entry to insert before the theme ressources ?
- Put it in my known sources in a sub folder named vendor, install manually dependencies with
yarn add pacakage
and import the dependencies & theme. - Put it outside assets folder and yarn add the theme folder
yarn add file:local/packages/theme/
In all case, template only handle a color variable, I have to override css properties in my own sources.
For cases 2 & 3, I am getting issues with images in CSS URL() & first yarn watch
is very long. Should I use a separate webpack entry for theme ?
For case 1, handling dependencies is really hard.