Skip to content

Instantly share code, notes, and snippets.

@codearryaas
Created July 31, 2020 15:57
Show Gist options
  • Save codearryaas/e44b3ed2877fd938b6251768dda21be2 to your computer and use it in GitHub Desktop.
Save codearryaas/e44b3ed2877fd938b6251768dda21be2 to your computer and use it in GitHub Desktop.
wp-react-plugin-test - webpack.config.js - step 1
const defaultConfig = require("@wordpress/scripts/config/webpack.config");
const path = require('path');
module.exports = {
...defaultConfig,
entry: {
'admin': [
'./app/src/admin/index.js'
]
},
output: {
...defaultConfig.output,
path: path.resolve(process.cwd(), 'app/build')
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment