reactioncommerce / reaction-cli

A command line tool for working with Reaction Commerce.
33 stars 20 forks source link

Add style importer functionality #20

Closed mikemurray closed 7 years ago

mikemurray commented 7 years ago

Related to: https://github.com/reactioncommerce/reaction/pull/1729

Style loader will look in plugins for style files to import.

Given a plugin with a stylesheet of CSS or LESS or Stylus or SCSS:

/imports/plugins/{core|included|custom}/myplugin/client/index.{css|less|styl|scss}

If it finds one, an @import statement it will be added to following file of matching extension.

/client/plugins.{css|less|styl|scss}

note: Reaction uses CSS / LESS. Other preprocessors ( Stylus & SCSS ) will need to be included in your own projects should you need them.