我正在使用Symfony 4新项目。
通过纱,我(通过示例)安装了CSS库animate.css
yarn install animate.css
从webpack.config.js文件中,我添加了animate.css文件,如下所示:
.addStyleEntry('animate','./node_modules/animate.css/animate.css')
我的问题是:这是添加CSS库的好方法吗?我不确定直接使用node_module路径是否是个好习惯。
有更好的方法吗?