new Configuration()
- Source:
Example
const config = require('crx/lib/configuration');
var options = config();
Members
appVersion :string
- Description:
Optional version name to be written into Upate Manifest file.
- Source:
- Default Value:
- undefined
Optional version name to be written into Upate Manifest file.
Type:
- string
browserVersion :string
- Description:
Optional minimum supported browser version name, e.g., '70.0.0'.
- Source:
- Default Value:
- undefined
Optional minimum supported browser version name, e.g., '70.0.0'.
Type:
- string
crxPath :string
- Description:
Path name of output CRX file.
- Source:
- Default Value:
- './web-extension.crx'
Path name of output CRX file.
Type:
- string
crxURL :string
- Description:
Optional extension file URL name to be written into Upate Manifest file.
- Source:
- Default Value:
- undefined
Optional extension file URL name to be written into Upate Manifest file.
Type:
- string
forceDateTime :number
- Description:
File creation time (UNIX timestamp) to be used for files and directories stored in the ZIP file.
Leave unchanged to keep values as found in the file system.
WARNING: This is supported only when creating new ZIP file!
- Source:
- Default Value:
- 0
File creation time (UNIX timestamp) to be used for files and directories stored in the ZIP file.
Leave unchanged to keep values as found in the file system.
WARNING: This is supported only when creating new ZIP file!
Type:
- number
keyPath :string
- Description:
Private key to be used for signing CRX file.
- Source:
- Default Value:
- ''
Private key to be used for signing CRX file.
Type:
- string
name :string
- Description:
Name used for files, if they are not specified otherwise.
- Source:
Name used for files, if they are not specified otherwise.
Type:
- string
srcPaths :Array.<string>
- Description:
List of paths to include.
- Source:
- Default Value:
- []
List of paths to include.
Type:
- Array.<string>
xmlPath :string
- Description:
Optional path name of output Update Manifest XML file.
- Source:
- Default Value:
- ''
Optional path name of output Update Manifest XML file.
Type:
- string
zipPath :string
- Description:
Optional path name of output ZIP file.
- Source:
- Default Value:
- ''
Optional path name of output ZIP file.
Type:
- string