JavaScript doesn't changes


I've created child theme and in its functions.php file trying to enqueue styles and scripts. They've successfully enqueued but when I am changing my vueapp.js, changes doesn't appear in the localhost. I've tried restart localhost and clear cash - that's not the problem. Maybe I should enqueue the another way?

function revie_enqueue_scripts() {
    wp_enqueue_style( 'main-style-sheet', get_stylesheet_directory_uri() . '/css/style.css' );
    wp_enqueue_style( 'foundation-style', get_stylesheet_directory_uri() . '/css/foundation.css' );

    wp_enqueue_script( 'main-script', get_stylesheet_directory_uri() . '/js/vueapp.js', array(), '1.0.0', true );
    wp_enqueue_script( 'vue-js', "", array(), '1.0.0', true );
add_action( 'wp_enqueue_scripts', 'revie_enqueue_scripts' );

Write a reply

Login or register to write a reply, it's free!