__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
const path = require( 'path' );
const jetpackWebpackConfig = require( '@automattic/jetpack-webpack-config/webpack' );
const CopyWebpackPlugin = require( 'copy-webpack-plugin' );
module.exports = [
{
entry: {
// Video block
'block-editor/blocks/video/index': './src/client/block-editor/blocks/video/index.ts',
'block-editor/blocks/video/view': './src/client/block-editor/blocks/video/view.ts',
'lib/token-bridge': './src/client/lib/token-bridge/index.ts',
'lib/player-bridge': './src/client/lib/player-bridge/index.ts',
'lib/videopress-token-bridge': './src/client/lib/videopress-token-bridge.js',
// VideoPress dashboard page
'admin/index': './src/client/admin/index.js',
// Block editor extensions
'block-editor/index': './src/client/block-editor/index.ts',
// Divi editor extensions
'divi-editor/index': './src/client/divi-editor/index.js',
},
mode: jetpackWebpackConfig.mode,
devtool: jetpackWebpackConfig.devtool,
output: {
...jetpackWebpackConfig.output,
path: path.resolve( './build' ),
},
optimization: {
...jetpackWebpackConfig.optimization,
},
resolve: {
...jetpackWebpackConfig.resolve,
},
node: false,
plugins: [
...jetpackWebpackConfig.StandardPlugins( {
DependencyExtractionPlugin: { injectPolyfill: true },
} ),
new CopyWebpackPlugin( {
patterns: [
{
context: 'src/client/block-editor/blocks',
from: './*/block.json',
to: './block-editor/blocks/[path]/[name].json',
},
{
from: 'src/client/block-editor/extensions/index.json',
to: './block-editor/extensions/index.json',
},
],
} ),
],
module: {
strictExportPresence: true,
rules: [
// Transpile JavaScript
jetpackWebpackConfig.TranspileRule( {
exclude: /node_modules\//,
} ),
// Transpile @automattic/jetpack-* in node_modules too.
jetpackWebpackConfig.TranspileRule( {
includeNodeModules: [ '@automattic/jetpack-' ],
} ),
// Handle CSS.
jetpackWebpackConfig.CssRule( {
extensions: [ 'css', 'sass', 'scss' ],
extraLoaders: [
{
loader: 'postcss-loader',
options: {
postcssOptions: { config: path.join( __dirname, 'postcss.config.js' ) },
},
},
'sass-loader',
],
} ),
// Handle images.
jetpackWebpackConfig.FileRule(),
],
},
externals: {
...jetpackWebpackConfig.externals,
jetpackConfig: JSON.stringify( {
consumer_slug: 'jetpack-videopress',
} ),
},
},
];
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| build | Folder | 0755 |
|
|
| src | Folder | 0755 |
|
|
| CHANGELOG.md | File | 61.56 KB | 0644 |
|
| LICENSE.txt | File | 17.98 KB | 0644 |
|
| SECURITY.md | File | 2.45 KB | 0644 |
|
| babel.config.js | File | 199 B | 0644 |
|
| declarations.d.ts | File | 146 B | 0644 |
|
| global.d.ts | File | 136 B | 0644 |
|
| jest.config.cjs | File | 109 B | 0644 |
|
| postcss.config.js | File | 881 B | 0644 |
|
| webpack.config.js | File | 2.46 KB | 0644 |
|