Skip to content

Instantly share code, notes, and snippets.

@tomlagier
Last active May 9, 2021 04:57
Show Gist options
  • Save tomlagier/a3b23aa5309f44319a68dca55adbfbaf to your computer and use it in GitHub Desktop.
Save tomlagier/a3b23aa5309f44319a68dca55adbfbaf to your computer and use it in GitHub Desktop.
import { WordpressShortcodeWebpackPlugin } from 'wordpress-shortcode-webpack-plugin';
export default {
entry: {
app: './src/index.js',
},
output: {
filename: '[name].[hash].js',
},
plugins: [
new WordpressShortcodeWebpackPlugin({
wordpressPluginName: 'my-awesome-plugin',
headerFields: {
author: 'Tom Lagier',
description: 'An awesome plugin that does many cool things',
version: '1.2.3'
}
}),
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment