Options
All
  • Public
  • Public/Protected
  • All
Menu

Module \mmir-webpack\src

Index

Type aliases

ModuleRule

ModuleRule: any

Plugin

Plugin: any

TestFileCondOption

TestFileCondOption: string | ((file: string) => boolean) | RegExp

Variables

Const log

log: any = logUtils.log

Const rootDir

rootDir: string = dirname(require.resolve('mmir-lib'))

Const warn

warn: any = logUtils.warn

Const webpackRemovedPaths

webpackRemovedPaths: string[] = ['jquery']

Const webpackRootDir

webpackRootDir: string = __dirname

Functions

Export assignment apply

createModuleRules

createPlugins

createResolveAlias

enableJQuery

excludeFilesFromModuleRule

  • excludeFilesFromModuleRule(fileList: string[], moduleRule: WebpackRule): void
  • HELPER add exclude-condition to module.rule for a list of (mmir) files

    Parameters

    • fileList: string[]

      the file-list which should be added to the exclude condition

    • moduleRule: WebpackRule

      the module rule

    Returns void

expandPackageResources

  • expandPackageResources(rootDir: string, alias: {}, resourcesConfigPackages: { location: string; name: string }[]): void
  • expand require.js package definitions & add them to the alias dictionary
    

    TODO extract this function to mmir-tooling?

    Parameters

    • rootDir: string

      the mmir root dir (usually node_modules/mmir-lib/lib/ )

    • alias: {}

      dictionary for module ID/alias -> module-path (INOUT parameter)

      • [id: string]: string
    • resourcesConfigPackages: { location: string; name: string }[]

    Returns void

modifyModuleRuleFilters

  • HELPER check existing module-rules and exclude mmir-files if necessary

    Parameters

    • moduleRules: Array<WebpackRule>

      the module.rules list of the webpack configuration (INOUT parameter)

    Returns Array<WebpackRule>

    the (possibly) modified rules

testFileForModuleRuleCondition

Object literals

Const webpackDefaultPaths

webpackDefaultPaths: object

build-tool/module-config-helper

build-tool/module-config-helper: string = resolve(__dirname, 'runtime', 'moduleConfigImpl')

build-tool/webpack-app-config

build-tool/webpack-app-config: string = resolve(__dirname, 'runtime', 'webpackModuleInit')

build-tool/webpack-helper-module-config

build-tool/webpack-helper-module-config: string = resolve(__dirname, 'runtime', 'webpackModuleUtils')

mmirf/scion

mmirf/scion: string = "vendor/libs/scion-amd-mod"

mmirf/simpleViewEngine

mmirf/simpleViewEngine: string = "env/view/stubViewEngine"

mmirf/util

mmirf/util: string = "tools/util_purejs"

mmirf/util/resourceLoader

mmirf/util/resourceLoader: string = resolve(__dirname, 'runtime', 'webpackLoadFile')

Generated using TypeDoc