1.0.4 • Published 6 years ago

emuto-loader v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

emuto-loader

An emuto loader for webpack.

Setup

You need to install emuto and emuto-loader:

Using yarn

yarn add --dev emuto emuto-loader

Using npm

npm install --save-dev emuto emuto-loader

You need to modify your webpack config:

// webpack.config.js
module.exports = {
  ...
  module: {
    rules: [{
      test: /\.eq$/,
      loader: 'emuto-loader' // compiles emuto to JavaScript
    }]
  }
};

You'll now be able to import emuto scripts:

// index.js
import GreetUser from './greeting.eq'

console.log(GreetUser({user: "John"}))
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago