Created
February 19, 2018 03:53
-
-
Save ahmadawais/7231e96ef5d878ae253dac655a45ead1 to your computer and use it in GitHub Desktop.
WP: Basic webpack Config for WordPress Block Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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