webpack-ect-loader

1.0.5 • Public • Published

webpack-ect-loader

Build Status MIT License

The ect templates compiler for webpack. This includes a html formatter pretty.

Installation

npm i -D webpack-ect-loader

Configuration

This works with the following helper packages

module.exports = {
  module: {
    rules: [
      {
        test: /\.ect$/,
        use: [
          {
            loader: 'html-loader',
            options: {
            }
          },
          {
            loader: 'ect-loader',
            options: {
              root: path.resolve(__dirname, 'src/ect'),
            }
          }
        ]
      },
    ]
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: 'src/index.ect',
      filename: 'index.[contenthash].html'
    })
  ]
};

Dependents (0)

Package Sidebar

Install

npm i webpack-ect-loader

Weekly Downloads

11

Version

1.0.5

License

MIT

Unpacked Size

2.48 kB

Total Files

6

Last publish

Collaborators

  • yozz