Babel plugin to replace files with dynamic content on build.
npm install babel-plugin-dynamic-importA plugin for Babel 6 that removes whitespace and minifies html written using as-html with es2015 template strings.
``bash`
$ npm install babel-plugin-as-html --save-dev
$ babel --plugins as-html script.js
All template strings tagged with the html tag will be minified and all unneeded white-space will be removed.
For instance the following tagged template:
`javascript
import html from 'as-html'
let output = html
;
`becomes:
`javascript
import html from 'as-html'
let output = html(['Hello World!<\/section><\/div>'])
`Contributions
* Use
npm test` to run tests.License