Skip to content

holidaypirates/hyper-html-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

hyper-html-loader

HyperHTML loader for webpack

turns

<span>${state.value}</span>

into

module.exports = (render, scope) => render`
  <span>${state.value}</span>
`

Usage

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.hyper.html?$/,
        use: [
          {
            loader: 'babel-loader'
          },
          {
            loader: 'hyper-html-loader'
          },
        ]
      },
      ...
    ],
  },
  ...
};

Options

variable: scope variable name (default scope)

About

HyperHTML loader for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published