Building/Compiling .vue files

Home Forums Accounting Building/Compiling .vue files

Viewing 2 reply threads
  • Author
    Posts
    • #52663
      Adrian Wijasa
      Participant

      Hello,

      I’m trying to customize the .vue files in erp/modules/accounting/assets/src/admin/components.

      What are the tools, commands, and steps you use to build/compile the files above into erp/modules/accounting/assets/js/admin.js?

      Thanks,

      Adrian

    • #52717
      Mehedi Hasan
      Moderator

      Hello Adrian,

      The file …../erp/modules/accounting/assets/js/admin.js/ will be reset and get your customization removed once WPERP gets updated. So, this is not an appropriate way to customize the plugin.

      Anyway, compiling process is kinda hard unless you are a Pro developer. You need to have Node installed. Then you’ll need to run ‘npm install’ command, then ‘npm run build’.

      Thanks

    • #53390
      Adrian Wijasa
      Participant

      Got it! Thanks for the pointer. I think I managed to run it successfully. I will also make sure that the changes won’t get overwritten by a new WP ERP version (will merge my customizations every time).

      The exact command I used was npx webconfig --config webpack.config.js

      Thanks,

      Adrian

Viewing 2 reply threads
  • You must be logged in to reply to this topic.