Hi I was wondering if we could use npm packages in the Symfony replacements... And if it's possible you can tell me how please
Asked
Active
Viewed 970 times
2 Answers
0
You can create all of frontend things in your public
folder (for explain (/public/frontend/
), init the npm
, Webpack
(if you want), and require generated CSS and JS files, in your base.html.twig
template.

MyZik
- 220
- 2
- 15
0
As you can see on the documentation Symfony documentation.
You can use npm
or yarn
which is similar but a still little bit different When to use Yarn over NPM? What are the differences?

D. Schreier
- 1,700
- 1
- 22
- 34