I read symfony documentation for Web Assets and create /assets
directory in root of my project then run command php bin/console assets:install
but get:
[OK] No assets were provided by any bundle.
I store one CSS file in assets directory but didn't install in /public
how should I do?
The web assets documentation for Symfony 4 recommends using Webpack Encore.
The assets:install
command is not used in this configuration.
Here's what you have to do according to the documentation :
yarn add @symfony/webpack-encore --dev
webpack.config.js
file as described here.yarn run encore dev