aurelia-webpack-plugin
- Version 5.0.6
- Published
- 82.2 kB
- 4 dependencies
- MIT license
Install
npm i aurelia-webpack-plugin
yarn add aurelia-webpack-plugin
pnpm add aurelia-webpack-plugin
Overview
A plugin for webpack that enables bundling Aurelia applications.
Index
Variables
Classes
Interfaces
Type Aliases
Variables
variable dependencyImports
const dependencyImports: Symbol;
variable preserveModuleName
const preserveModuleName: Symbol;
Classes
class AureliaDependenciesPlugin
class AureliaDependenciesPlugin {}
constructor
constructor(...methods: string[]);
method apply
apply: (compiler: webpack.Compiler) => void;
class AureliaPlugin
class AureliaPlugin {}
constructor
constructor(options?: Partial<Options>);
property options
options: Options;
method addEntry
addEntry: ( options: Webpack.WebpackOptionsNormalized, modules: string | string[]) => void;
method apply
apply: (compiler: Webpack.Compiler) => void;
class ConventionDependenciesPlugin
class ConventionDependenciesPlugin extends BaseIncludePlugin {}
constructor
constructor( glob: string, conventions?: string | Convention | (string | Convention)[]);
glob: a pattern that filters which files are affected
property conventions
conventions: Convention[];
method parser
parser: ( compilation: webpack.Compilation, parser: webpack.javascript.JavascriptParser, addDependency: AddDependency) => void;
class DistPlugin
class DistPlugin {}
constructor
constructor(dist: string);
method apply
apply: (resolver: Resolver) => void;
class GlobDependenciesPlugin
class GlobDependenciesPlugin extends BaseIncludePlugin {}
constructor
constructor(hash: { [module: string]: string | string[] });
Each hash member is a module name, for which globbed value(s) will be added as dependencies
method apply
apply: (compiler: Webpack.Compiler) => void;
method parser
parser: ( compilation: Webpack.Compilation, parser: Webpack.javascript.JavascriptParser, addDependency: AddDependency) => void;
class HtmlDependenciesPlugin
class HtmlDependenciesPlugin extends BaseIncludePlugin {}
method parser
parser: ( compilation: Webpack.Compilation, parser: Webpack.javascript.JavascriptParser, addDependency: AddDependency) => void;
class ModuleDependenciesPlugin
class ModuleDependenciesPlugin extends BaseIncludePlugin {}
constructor
constructor(hash: ModuleDependenciesPluginOptions);
Each hash member is a module name, for which additional module names (or options) are added as dependencies.
property hash
hash: { [name: string]: any[] };
property modules
modules: { [module: string]: any[] };
property root
root: string;
method apply
apply: (compiler: Webpack.Compiler) => void;
method parser
parser: ( compilation: Webpack.Compilation, parser: Webpack.javascript.JavascriptParser, addDependency: AddDependency) => void;
class PreserveExportsPlugin
class PreserveExportsPlugin {}
method apply
apply: (compiler: Webpack.Compiler) => void;
class PreserveModuleNamePlugin
class PreserveModuleNamePlugin {}
constructor
constructor(isDll?: boolean);
method apply
apply: (compiler: Webpack.Compiler) => void;
Interfaces
interface ModuleDependenciesPluginOptions
interface ModuleDependenciesPluginOptions {}
index signature
[module: string]: | undefined | string | DependencyOptionsEx | (undefined | string | DependencyOptionsEx)[];
interface Options
interface Options {}
property aureliaApp
aureliaApp?: string;
property aureliaConfig
aureliaConfig: AureliaModuleConfig | AureliaModuleConfig[];
A single config or a list of configurations to ensure the AureliaPlugin can bundle appropriate modules for the aurelia-loader to load at runtime.
aurelia-framework
exposes configuration helpers like.standardConfiguration()
etc..., that load plugins (aurelia-templating-binding
,aurelia-templating-resources
,aurelia-templating-router
etc...), but we can't know if they are actually used or not at build time.This config gives users the ability to indicate what are used at build time. Custom config is performed in use code and can use
.moduleName()
like normal.
property dist
dist: string;
A dist folder to look for in *all* modules. Possible values for the core Aurelia modules are: - es2015 - commonjs - amd - native-modules
Note: application may choose to have a different dist types for their modules, and not use the above modules.
Note: In the future, multiple dist with fallback may be supported to help application specify the dist with as latest syntaxes as possible.
property entry
entry?: string | string[];
property features
features: { ie?: boolean; svg?: boolean; unparser?: boolean; polyfills?: Polyfills;};
property includeAll
includeAll: false | string;
if a string is given, include everything inside that folder, recursively.
property moduleMethods
moduleMethods: string[];
property noHtmlLoader
noHtmlLoader: boolean;
property noInlineView
noInlineView: boolean;
property noModulePathResolve
noModulePathResolve: boolean;
property noWebpackLoader
noWebpackLoader: boolean;
property pal
pal?: string;
An application can use this config to specify what PAL module to use.
Possible values are: - aurelia-pal-browser - aurelia-pal-worker - aurelia-pal-nodejs
By default, it'll be determined based on the webpack configuration.
property viewsExtensions
viewsExtensions: string | Convention | (string | Convention)[];
property viewsFor
viewsFor: string;
Type Aliases
type AureliaModuleConfig
type AureliaModuleConfig = keyof typeof configModuleNames | 'standard' | 'basic';
type Convention
type Convention = (filename: string) => string;
type Polyfills
type Polyfills = 'es2015' | 'es2016' | 'esnext' | 'none';
Package Files (10)
- dist/types/AureliaDependenciesPlugin.d.ts
- dist/types/AureliaPlugin.d.ts
- dist/types/ConventionDependenciesPlugin.d.ts
- dist/types/DistPlugin.d.ts
- dist/types/GlobDependenciesPlugin.d.ts
- dist/types/HtmlDependenciesPlugin.d.ts
- dist/types/ModuleDependenciesPlugin.d.ts
- dist/types/PreserveExportsPlugin.d.ts
- dist/types/PreserveModuleNamePlugin.d.ts
- dist/types/index.d.ts
Dependencies (4)
Dev Dependencies (53)
- @types/chai
- @types/minimatch
- @types/mocha
- @types/node
- @types/parse5
- aurelia-binding
- aurelia-bootstrapper
- aurelia-chart
- aurelia-dependency-injection
- aurelia-dialog
- aurelia-event-aggregator
- aurelia-framework
- aurelia-history
- aurelia-history-browser
- aurelia-loader
- aurelia-logging
- aurelia-logging-console
- aurelia-metadata
- aurelia-pal
- aurelia-pal-browser
- aurelia-path
- aurelia-polyfills
- aurelia-route-recognizer
- aurelia-router
- aurelia-store
- aurelia-task-queue
- aurelia-templating
- aurelia-templating-binding
- aurelia-templating-resources
- aurelia-templating-router
- aurelia-testing
- chai
- chart.js
- copy-webpack-plugin
- css-loader
- html-loader
- html-webpack-plugin
- karma
- karma-chrome-launcher
- karma-mocha
- karma-sourcemap-loader
- karma-webpack
- link-parent-bin
- mini-css-extract-plugin
- mocha
- redux
- rimraf
- ts-loader
- tslib
- typescript
- webpack
- webpack-cli
- webpack-dev-server
Peer Dependencies (1)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/aurelia-webpack-plugin
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/aurelia-webpack-plugin)
- HTML<a href="https://www.jsdocs.io/package/aurelia-webpack-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2064 ms. - Missing or incorrect documentation? Open an issue for this package.