This package has been deprecated

Author message:

This package has reached end of life and is deprecated. Please refer to our support policy, https://www.itwinjs.org/learning/api-support-policies/, and changelog, https://www.itwinjs.org/v3/changehistory/3.0.0/#package-name-changes.

@bentley/webpack-tools-core
TypeScript icon, indicating that this package has built-in type declarations

2.19.53 • Public • Published

webpack-tools-core

Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.

The webpack-tools-core contains a set of webpack loaders and plugins used to build iTwin.js backend and frontends.

The main entry point for building an iTwin.js backend is the @bentley/backend-webpack package and iTwin.js frontends should use @bentley/webpack-tools.

This package contains the following Loaders and Plugins:

Loaders

Name Description
strip-assert-loader Removes all uses of @bentley/bentleyjs-core assert() method from the webpack bundle.

Plugins

Name Description
BackendDefaultsPlugin Combines a set of Webpack plugins to use as defaults when building an iTwin.js backend. (Used in @bentley/backend-webpack).
BanImportsPlugin Bans any import that crosses the frontend/backend boundary
CopyBentleyStaticResourcesPlugin Copies static resources from '@bentley' scoped packages into the output folder. Used to copy "assets", "public" and other resource files.
CopyExternalsPlugin Copies all npm packages containing an external module (and their direct dependencies) to a node_modules directory next to the webpack output.
PrettyLoggingPlugin Formats the output messages to print better when running within Azure DevOps Pipelines. Flags any warnings as errors when running a CI build.
WatchBackendPlugin Reloads a frontend anytime its corresponding backend changes.
IModeljsLibraryExportsPlugin Promotes all module exports to the global scope, under a "__IMODELJS_INTERNALS_DO_NOT_USE" variable, with an "imjsSharedLib" in the package.json.

Readme

Keywords

none

Package Sidebar

Install

npm i @bentley/webpack-tools-core

Weekly Downloads

218

Version

2.19.53

License

MIT

Unpacked Size

167 kB

Total Files

55

Last publish

Collaborators

  • aruniverse
  • colinkerr
  • cshafer
  • imodeljs
  • wgoehrig