Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 795 Bytes

03-xt-build-assets.md

File metadata and controls

34 lines (25 loc) · 795 Bytes

Static assets


Specify how static assets will be handled during builds.


By default, extension CLI will look for static assets matching this configuration:

"assets": [
    "./assets/**/*",
    "!./assets/locales",
    "!./assets/locales/**/*"
  ],

You may change this configuration if the project's static assets are located elsewhere or if you want to include or exclude additional files/directories.

After the build step, all static assets will be located in the /dist/assets directory.

For example, to refer to images in extension manifest, would be as follows:

"browser_action": {
    "default_icon": {
      "16": "assets/img/16x16.png",
      "24": "assets/img/24x24.png",
      "32": "assets/img/32x32.png"
    }
}