Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

webpack - Symfony bundle - managing assets

I am creating a symfony bundle.

I don't understand how to deal with assets in my bundle. I am used to Webpack Encore and I thought I could have my js/css with webpack encore as usual, generate production assets in the Resources/public directory as suggested by the Symfony Bundle good practises and it will work with the 'encore_entry_script_tags(nameoftheentry)'.

However, I am seeing that in fact, including assets as that in my twig templates in my bundle, it tries to find out assets inside the main application and not inside the bundle.

I don't know how to solve this.

Thank you in advance, have a great day.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...