Skip to content
Permalink
Browse files

Removed Gutenberg plugin, so that only a block remains

  • Loading branch information...
David Aguilera
David Aguilera committed Feb 27, 2019
1 parent f79707c commit 2d59350f81add894e924bafb39ab7b7bcf62deba
@@ -0,0 +1,2 @@
<?php
// Silence is golden.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -114,25 +114,10 @@ public function enqueue_block_editor_assets() {
$this->plugin_version
);
wp_enqueue_script(
'nelio-maps-plugin',
untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/assets/dist/js/plugin.js',
[ 'wp-editor', 'wp-i18n', 'wp-element', 'wp-data', 'wp-edit-post' ],
$this->plugin_version,
true
);
if ( function_exists( 'wp_set_script_translations' ) ) {
wp_set_script_translations( 'nelio-maps-plugin', 'nelio-maps' );
}//end if
wp_enqueue_style(
'nelio-maps-plugin',
untrailingslashit( plugin_dir_url( __FILE__ ) ) . '/assets/dist/css/plugin.css',
[],
$this->plugin_version
);
}//end enqueue_block_editor_assets()
public function admin_init() {
@@ -102,9 +102,6 @@ const config = {
// Create RTL css.
new WebpackRTLPlugin(),

// Copy images and SVGs
new CopyWebpackPlugin( [ { from: 'assets/src/images', to: 'images' } ] ),

// Copy index.php to all dist directories.
new CopyWebpackPlugin( [ { from: 'index.php', to: '.' } ] ),
new CopyWebpackPlugin( [ { from: 'index.php', to: './js' } ] ),
@@ -131,16 +128,6 @@ module.exports = [
},
}, config ),

Object.assign( {
entry: {
plugin: [ './assets/src/js/admin/plugin.js' ],
},
output: {
path: path.resolve( __dirname, './assets/dist/' ),
filename: 'js/[name].js',
},
}, config ),

];

// inProd?

0 comments on commit 2d59350

Please sign in to comment.
You can’t perform that action at this time.