Download wp-calypso/apps/o2-blocks/webpack.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/o2-blocks/webpack.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/o2-blocks/webpack.config.js
-
curl -L -o webpack.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/o2-blocks/webpack.config.js
661 Bytes
| /** | |
| *WARNING: No ES6 modules here. Not transpiled! **** | |
| */ | |
| const getBaseWebpackConfig = require( '@automattic/calypso-build/webpack.config.js' ); | |
| const ReadableJsAssetsWebpackPlugin = require( '@wordpress/readable-js-assets-webpack-plugin' ); | |
| function getWebpackConfig( env, argv ) { | |
| const webpackConfig = getBaseWebpackConfig( { ...env, WP: true }, argv ); | |
| return { | |
| ...webpackConfig, | |
| entry: { | |
| editor: './src/editor.js', | |
| view: './src/view.js', | |
| }, | |
| output: { | |
| ...webpackConfig.output, | |
| filename: '[name].min.js', | |
| }, | |
| plugins: [ ...webpackConfig.plugins, new ReadableJsAssetsWebpackPlugin() ], | |
| }; | |
| } | |
| module.exports = getWebpackConfig; | |