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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    21
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    21
  • 1.0.4
    1
  • 1.0.3
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i webpack-ect-loader

Weekly Downloads

25

Version

1.0.5

License

MIT

Unpacked Size

2.48 kB

Total Files

6

Last publish

Collaborators

  • yozz