Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

railshot-webpack-plugin

towry2MIT1.0.2

Wepback plugin that works with webpackrails ruby gem.

webpack, plugin, rails

readme

railshot-webpack-plugin

Wepback plugin that works with webpackrails ruby gem.

Install

Just run

npm install railshot-webpack-plugin

Usage

Your webpack.config.js file

var railshotPlugin = require('railshot-webpack-plugin');

// no entry here
module.exports = {
  plugins: [
    railshotPlugin()
  ],

  webpackrails: {
    root: 'path_to_your_rails_root_path',   // this is optional
  }
}

License

MIT