Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to get vue js work on new custom theme

    Modules
    2
    2
    347
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      Uyo-obong last edited by

      Pls I'm creating a theme for my project, how can I make vue js work on it... I already run npm install on the theme dir but after that I use <div id="app"></div> but when I even I write vue js it will detect on my dev tool

      I included this link <script type=”text/javascript” src=”{{ URL::to('themes/default/assets/js/shop.js') }}”></script> on my footer

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        Hi @Uyo-obong
        have you tried by running npm run watch-poll in the newly theme directory?

        Thanks

        1 Reply Last reply Reply Quote 0
        • First post
          Last post