How to include non Bower script?

As the title of the topic, how can I include a script that is not served by Bower (making sure that Gulp can minimize and even concatenate these files)?

Thanks.

You can do this by editing the manifest.json in your assets folder and add vendor files to the main.js & main.css:

    "main.js": {
      "files": [
        "scripts/main.js"
      ],
      "vendor": [
        "assets/scripts/plugins/fresco/fresco.js"
      ],
      "main": true
    },
    "main.css": {
      "files": [
        "styles/main.scss"
      ],
      "vendor": [
        "assets/styles/plugins/fresco/fresco.css"
      ],
      "main": true
    },

In this example I added a folder plugins in the scripts as well as the styles folder with the fresco plugin files. You might have to override some url paths to sprites etc. in the plugin’s css to match the new structure.

3 Likes

Thank you @Twansparant, it was so simple… :smile: