Skip to content

A Webpack plugin for the generation of styleguides using Ruby Hologram.

Notifications You must be signed in to change notification settings

bluetel/ruby-hologram-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ruby-hologram-webpack-plugin

A simple webpack plugin for the generation of styleguides using Hologram.

Installing

Installing this couldn't be easier, add ruby-hologram-webpack-plugin using your favourite Node package manager.

e.g. npm install ruby-hologram-webpack-plugin or using yarn yarn add ruby-hologram-webpack-plugin

Then instantiate it in your webpack plugin.

const RubyHologramPlugin = require('ruby-hologram-webpack-plugin')

module.exports = {
  plugins: [
    new RubyHologramPlugin({
      config: '/path/to/configuration.yml'
    })
  ]
}

That's it, you're done! You'll want to take a look at the Hologram documentation for examples on configuring Hologram.

Options

  • config -- Path to your configuration file. (e.g. /hologram.yml)
  • binary -- Hologram binary to run. Useful if you're using something like Bundler to enforce version, or if it is outside of your path. (e.g. /usr/local/bin/hologram or bundle exec hologram)

Upcoming Features!

  • Templated configuration, for injection of assets from webpack build.
  • Hotloader support.

About

A Webpack plugin for the generation of styleguides using Ruby Hologram.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published