Skip to content

Instantly share code, notes, and snippets.

@zinigor
Created January 21, 2019 08:40
Show Gist options
  • Save zinigor/e318917759c6f70d479a46ff4383a91d to your computer and use it in GitHub Desktop.
Save zinigor/e318917759c6f70d479a46ff4383a91d to your computer and use it in GitHub Desktop.
diff --git a/babel.config.js b/babel.config.js
index d9be17f131..cb96a7eb2e 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -55,6 +55,16 @@ const config = {
{
test: './client/gutenberg/extensions',
plugins: [
+ [
+ '@wordpress/babel-plugin-makepot',
+ {
+ output: 'editor.pot',
+ headers: {
+ 'content-type': 'text/plain; charset=UTF-8',
+ 'x-generator': 'calypso',
+ },
+ },
+ ],
[
'@wordpress/import-jsx-pragma',
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment