BBVAEngineering / ember-cli-htmlbars-minifier

Removes all whitespace in htmlbars templates
MIT License
2 stars 0 forks source link

Migrate plugin to ES6 classes #10

Closed shokmaster closed 5 years ago

shokmaster commented 5 years ago

Try to migrate this to ES6 classes and add the property annotation to the plugin (debugging purposes). The code seems to be easier to understand using classes:

class Thumbnail extends Filter {
  constructor(inputNode, options = {}) {
    options = Object.assign(options || {}, {
      persist: true,
      annotation: 'HTMLBars Minifier',
    });
    super(inputNode, options);
  }

  // TODO...
}

Originally posted by @josex2r in https://github.com/BBVAEngineering/ember-cli-htmlbars-minifier/pull/9