webpack.config.js in FV Player 8 8.1, at webpack.config.js
| 1 | /** |
| 2 | * External Dependencies |
| 3 | */ |
| 4 | const path = require( 'path' ); |
| 5 | |
| 6 | /** |
| 7 | * WordPress Dependencies |
| 8 | */ |
| 9 | const defaultConfig = require( '@wordpress/scripts/config/webpack.config.js' ); |
| 10 | |
| 11 | module.exports = { |
| 12 | ...defaultConfig, |
| 13 | entry: { |
| 14 | index: path.resolve( __dirname, 'blocks', 'index.js' ), |
| 15 | }, |
| 16 | output: { |
| 17 | path: path.resolve( __dirname, 'blocks/build' ), |
| 18 | }, |
| 19 | } |
| 20 |