Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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'
    })
  ]
};

Install

npm i webpack-ect-loader

DownloadsWeekly Downloads

43

Version

1.0.5

License

MIT

Unpacked Size

2.48 kB

Total Files

6

Last publish

Collaborators

  • avatar