@shopify/html-webpack-liquid-asset-tags-plugin
v1.0.0-beta.11
Published
Finds static asset references and turns them into liquid tags with the 'asset_url' filter
Downloads
389
Maintainers
Keywords
Readme
@shopify/html-webpack-liquid-asset-tags-plugin
An HTML Webpack Plugin addon which swaps out generated <link>
and <script>
asset URLs with Shopify Liquid tags using the asset_url
filter. For example:
<script type=text/javascript src="theme.js"></script>
gets transformed into
<script type=text/javascript src="{{ 'theme.js' | asset_url }}"></script>