npm.io
1.1.1 • Published 10 years ago

uh-erb-loader

Licence
MIT
Version
1.1.1
Deps
1
Vulns
0
Weekly
0
Stars
105
DeprecatedThis package is deprecated

ERB loader

PROJECT RENAMED: Please use rails-erb-loader instead

Simple .erb loader for use with Webpack in a Ruby on Rails project. Files are piped through the ERB via a rails runner call on commandline (see source for more info).

Installation

Install from npm

$ npm install uh-erb-loader --save-dev

Example Webpack config

// webpack.config.js

module.exports = {
  preLoaders: [
    { test: /\.erb$/, loader: 'uh-erb-loader' },
  ]
};

Keywords