Parcel plugin that interpolates v1 plugin HTML into v2 HTML body
Also see: parcel-plugin-zengine-js-migrator parcel-plugin-zengine-css-migrator
npm i -d parcel-plugin-zengine-html-migrator
Attention: parcel-bundler has to be installed
- Add
%PLUGIN_HTML%
to the wrapper's index.html between the body tags. - Ensure your ng-templates all live in
v1-output/plugin.html
- Run parcel normally
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Cool Plugin</title>
</head>
<body>
%PLUGIN_HTML%
</body>
</html>
run it
parcel index.html
output
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Cool Plugin</title>
</head>
<body>
<script type="text/ng-template" id="my-cool-plugin">
<!-- etc -->
</script>
</body>
</html>