Options
All
  • Public
  • Public/Protected
  • All
Menu

gatsby-plugin-atl

Index

Type aliases

WebpackConfigFn

WebpackConfigFn: function

Same interface that gatsby uses for the onCreateWebpackConfig() function

Type declaration

    • (args: CreateWebpackConfigArgs, options?: PluginOptions, callback?: PluginCallback): void
    • Parameters

      • args: CreateWebpackConfigArgs
      • Optional options: PluginOptions
      • Optional callback: PluginCallback

      Returns void

Functions

Private omitKeys

  • omitKeys<T, K, X, R>(obj: T, ...omit: K): R
  • Type parameters

    • T

    • K: keyof T[]

    • X: string | number | symbol

    • R

    Parameters

    • obj: T

      Any object you want to exclude keys from

    • Rest ...omit: K

      The keys you want to exclude from the object

    Returns R

    Returns the original object, less the keys instructed to omit

Const onCreateWebpackConfig

  • onCreateWebpackConfig(__namedParameters: object, pluginOptions: undefined | PluginOptions): void
  • Integrates awesome-typescript-loader into Gatsby's webpack configuration

    Parameters

    • __namedParameters: object
    • pluginOptions: undefined | PluginOptions

      The options provided by the user from gatsby-config

      • These are merged with the default configuration options.
      • Any options specified here will override the defaults.

    Returns void

Const resolvableExtensions

  • resolvableExtensions(): string[]
  • These are the lists of extensions for this plugin to process Currently, it is processing all typescript and javascript, awesome-typescript-loader is intelligent enough to ignore javascript files if they are not processed.

    • References: ['.ts', '.tsx', '.js', '.jsx']

    Returns string[]

    Array of valid file extensions