UNPKG

ember-cli-sanitize-html

Version:

Wrapper for Sanitize HTML to help clean up unwanted html tags

28 lines (24 loc) 522 B
'use strict'; const { name } = require('./package'); const FastbootTransform = require('fastboot-transform'); module.exports = { name, options: { nodeAssets: { 'sanitize-html': { vendor: { srcDir: 'dist', include: ['sanitize-html.js'], processTree(input) { return FastbootTransform(input); } } } } }, included() { this._super.included.apply(this, arguments); this.import('vendor/sanitize-html/sanitize-html.js'); this.import('vendor/shims/sanitize-html.js'); } };