This topic contains 0 replies, has 1 voice, and was last updated by  PedroMatos 1 week, 2 days ago.

Adding files to the build. i.e. select2 locales


  • PedroMatos
    Participant

    Member Reply #20216

    Hi,

    I’m using 6.0.4.

    I’ve been using the default logic of placing extra stuff I need from the “optional” branch into the “mandatory” branch (build/vendors/base/src).

    My current trouble is with Select2.

    I’ve added it to the mandatory branch.

    But where do I place the location of the locales, so that they’re imported while build is ran?

    To me, it makes sense to be able to place something in the “vendors/custom” node.

    I.E:

    “custom”: {

    “select2”: {

    “scripts”: [

    “{$config.path.node_modules}/select2/dist/js/i18n/pt.js”,

    “{$config.path.node_modules}/select2/dist/js/i18n/es.js”,

    “{$config.path.node_modules}/select2/dist/js/i18n/en.js”

    ]

    },

    And I did, but nothing happened after building.

    Do I have to do it by hand?

    It seems a bad way to do it.

    Can I get some help on here? Or do I really need to go the support.

Tagged: 

You must be logged in to reply to this topic.