Publish

Ftp

ftp.host

string

Required. Defaults to undefined.

ftp.port

number

Defaults to 22.

ftp.user

string

Defaults to 'anonymous'.

ftp.pass

string

Defaults to null.

ftp.remotePath

string

Defaults to '/'.

ftp.logging

boolean

New in 1.0.0

Defaults to false.

🌰 For example:

ftp: {
  host: '192.168.1.1',
  port: 22,
  user: 'root',
  pass: '123456',
  remotePath: '/path/to/webroot',
  logging: true
}

Usage: Refer to Custom Task API - mix.ftp

Assets

assets.publicUrlPlaceholder

string

New in 0.8.0

Just for HTML template. Defaults to '%PUBLIC_URL%'.

assets.publicUrl

string

New in 0.8.0

Defaults to ''.

assets.root

string

Remote project root simulation. Defaults to 'assets'.

assets.mainDir (Rename in 1.0.0)

string

Rename publicPath to mainDir in 1.0.0

The public directory contains the front controller and your assets (images, JavaScript, CSS, etc.). Defaults to 'public'.

assets.subDir

string

Public subdirectory. Defaults to ''.

assets.options

object

New in 0.6.0

Defaults to:

{
  fileNameManifest: 'rev-manifest.json',
  dontRenameFile: ['.html', '.php'],
  dontUpdateReference: ['.html', '.php']
}

assets.excludes

array

New in 0.6.0

Cache excludes. Defaults to [].

assets.includes

array

New in 0.6.1

Cache includes. Defaults to [].

🌰 For example:

assets: {
  publicUrl: '',
  root: '/path/to/your_remote_project',
  mainDir: 'public',
  subDir: 'mobile'
}

Cache

cache

boolean

Versioning/Cache Busting switch. Defaults to false.

🌰 For example:

cache: true

results matching ""

    No results matching ""