mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
remove JS file
This commit is contained in:
@ -11,7 +11,6 @@ function injectMetadata() {
|
||||
return src(
|
||||
[
|
||||
FOLDER_BUILD + '/front/block-events-loader.js',
|
||||
FOLDER_BUILD + '/front/events-loader.js',
|
||||
FOLDER_BUILD + '/' + PACKAGE.name + '.php',
|
||||
FOLDER_BUILD + '/includes/constants.php',
|
||||
FOLDER_BUILD + '/readme.txt',
|
||||
|
@ -33,7 +33,6 @@ final class Mobilizon_Connector {
|
||||
add_action('init', [$this, 'register_settings'], 1); // required for register_blocks
|
||||
add_action('init', [$this, 'register_shortcut']);
|
||||
add_action('widgets_init', [$this, 'register_widget']);
|
||||
add_action('wp_enqueue_scripts', [$this, 'register_scripts']);
|
||||
register_activation_hook(__FILE__, [$this, 'enable_activation']);
|
||||
}
|
||||
|
||||
@ -69,12 +68,6 @@ final class Mobilizon_Connector {
|
||||
MobilizonConnector\Settings::init();
|
||||
}
|
||||
|
||||
public function register_scripts() {
|
||||
$name = MobilizonConnector\NAME . '-js';
|
||||
wp_enqueue_script($name, plugins_url('front/events-loader.js', __FILE__ ));
|
||||
$this->load_settings_globally_before_script($name);
|
||||
}
|
||||
|
||||
public function register_shortcut() {
|
||||
MobilizonConnector\EventsListShortcut::init();
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ const FOLDER_SOURCE = './source'
|
||||
module.exports = {
|
||||
entry: {
|
||||
'block-events-loader': FOLDER_SOURCE + '/front/block-events-loader.js',
|
||||
'events-loader': FOLDER_SOURCE + '/front/events-loader.js',
|
||||
},
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
|
Reference in New Issue
Block a user