Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created February 19, 2018 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/7231e96ef5d878ae253dac655a45ead1 to your computer and use it in GitHub Desktop.
Save ahmadawais/7231e96ef5d878ae253dac655a45ead1 to your computer and use it in GitHub Desktop.
WP: Basic webpack Config for WordPress Block Plugin
module.exports = {
// Entry.
entry: "./block.js", // Import all JavaScript dependencies in this file.
// Output.
output: {
path: __dirname, // Path to produce the output. Set to the current directory.
filename: "block.build.js" // Filename of the file that webpack builds.
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment