Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

copyAssets WIKI

Alan Souza edited this page Apr 5, 2016 · 1 revision

The copyAssets option allows different configurations for adding assets to your Grommet distribution.

The entry is an array and the values could be either a string or an object.

Example

var opts = {
  copyAssets: [
    'README.md',
    {
      asset: 'src/js/**',
      babel: true //runs babel before adding to dist folder
    },
    {
      asset: 'src/scss/**',
      dist: 'dist/scss/' //adds a different dist folder
    },
    {
      asset: 'examples/**',
      dist: 'dist/examples/',
      ignores: [ // ignores node_modules and dist folder from the copy task
        'node_modules/'
      ]
    },
    {
      filename: 'package.json',
      asset: "{ name: 'testing' }"
    }
  ]
};
Clone this wiki locally