php - Symfony/Less @icon-font-path is undefined in glyphicons.less -
i use symfony 2.4 , installed bundle mopabootstrap.
less say: nameerror: variable @icon-font-path undefined in glyphicons.less on line 13, column 8. it's mopabootstrap file.
i extend 'mopabootstrapbundle::base_initializr.html.twig'. have no particular code, it's new project.
less work great code, except bootstrap glyphicons file.
any idea ?
edit: there open issue there if have ideas: https://github.com/phiamo/mopabootstrapbundle/issues/839#issuecomment-39893655
i removed 'apply_to: ".less$"' in config.yml , added less filter twig tags. assetic:dump --watch seems work fine.
config.yml
assetic: debug: %kernel.debug% use_controller: false filters: less: node: /usr/local/bin/node node_paths: [/usr/local/lib/node, /usr/local/lib/node_modules] apply_to: "\.less$" <<<<< remove line
base.html.twig
{% stylesheets '@mopabootstrapbundle/resources/public/less/mopabootstrapbundle.less' filter='less' <<<<< add line %} <link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" /> {% endstylesheets %}
Comments
Post a Comment