2017-12-09 15 views
0

따르면 Symfony Best Practices심포니 4 - 자산은

Store your assets in the assets/ directory at the root of your project. 

를 찾을 수 없습니다 폴더 그러나 현재,이 폴더가 생성이 없어 내가 그것을 만들 경우, 나는 능숙 해가 될 수 없음을 말해 오류를 가지고 녹이다.

나는 작곡가가 웹 세트을 요구했지만 시도하지 않았습니다.

누구나 해결책이 있습니까?

감사합니다.

+0

심포니/애셋을 시도했지만 만들지 않았습니다. – FindL

+1

주석을 사용하는 것보다 추가 정보로 질문을 업데이트하는 것이 더 좋습니다. 어쨌든 Symfony는 자산 관리에서 벗어나려고 노력하고 있습니다. 나는 당신이 여전히 3.4에서 번들을 사용할 수 있어야하지만 어떤 조리법도 보지 못한다. 그러나 [Symfony Webpack Encore] (https://symfony.com/blog/introducing-webpack-encore-for-asset-management) – Cerad

+0

및 [Asset Component] (https://symfony.com/doc/)를 사용해보십시오. current/components/asset.html)이 여전히 존재합니다. 그리고 [Assets에 연결] (https://symfony.com/doc/current/templating.html#linking-to-assets) – Cerad

답변

0

다음 명령을 시도해보십시오.

$ composer require encore 
$ yarn install 

여기를 참조하십시오.
http://symfony.com/doc/current/frontend/encore/installation.html

+0

[여기] (http://symfony.com/doc/current/frontend.html)). – Tomcky

+0

Symfony Asset Component를 설치하는 것을 잊지 마십시오. https://github.com/symfony/webpack-encore/issues/173#issuecomment-334396606 – Tomcky