Use it with a bundler - Shopify/prettier-plugin-liquid GitHub Wiki
Bundlers like webpack, Rollup or browserify automatically recognize how to handle the plugin. Remember that even when using a bundler, you still have to use the standalone builds:
import prettier from 'prettier/standalone';
import liquidPlugin from '@shopify/prettier-plugin-liquid/standalone';
prettier.format(YOUR_CODE, {
plugins: [liquidPlugin],
parser: 'liquid-html',
});