parcel-plugin-eft

1.0.2 • Public • Published

parcel-plugin-eft

Add ef.js template support for parcel bundler.

Install

Install via yarn:

yarn add --dev parcel-plugin-eft

or via npm:

npm install --save-dev parcel-plugin-eft

Usage

With this plugin set up properly, you can then import any .eft or .ef template files directly:

import Hello from './hello.eft'

const helloWorld = new Hello({
  $data: {
    name: 'World'
  }
})

helloWorld.$mount({target: document.body})

Typescript Shims

Create shims.d.ts under your project root:

declare module '*.ef' {
  const template: any
  export default template;
}
declare module '*.eft' {
  const template: any
  export default template;
}

Readme

Keywords

none

Package Sidebar

Install

npm i parcel-plugin-eft

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1.73 kB

Total Files

4

Last publish

Collaborators

  • oott123