Log1x / blade-svg-sage

A simple package to add support for Blade SVG by Adam Wathan to Roots Sage.
MIT License
72 stars 13 forks source link

Doesn't work as mu-plugin in theme #2

Closed strarsis closed 7 years ago

strarsis commented 7 years ago

I required this (mu-)plugin in a sage theme - but this plugin isn't listed as obligatory installed/enabled plugin.

It works if I require it for the site instead for the theme (site/) - but it should work for the theme.

Log1x commented 7 years ago

You need to specify the installer-paths in your theme's composer.json -- Sage 9 by default doesn't have them.

"extra": {
  "installer-paths": {
    "../../mu-plugins/{$name}/": ["type:wordpress-muplugin"],
    "../../plugins/{$name}/": ["type:wordpress-plugin"]
  }
},

A sane spot for it would be right above "scripts".