@microsoft/gulp-core-build-webpack
TypeScript icon, indicating that this package has built-in type declarations

6.0.3 • Public • Published

@microsoft/gulp-core-build-webpack

gulp-core-build-webpack is a gulp-core-build subtask which introduces the ability to bundle various source files into a set of bundles, using webpack.

npm version Build Status Dependencies

Tasks

WebpackTask

Description

This task invokes webpack using a consumer-specified webpack.config.js on a package.

Config

interface IWebpackConfig {
  configPath: string;
  config: Webpack.Configuration;
  suppressWarnings: string[];
}
  • configPath used to specify the local package relative path to a webpack.config.js
  • config used to specify a webpack config object. configPath takes precidence over this option if it is set and the file it refefences exists.
  • suppressWarnings used to specify regular expressions or regular expression strings that will prevent logging of a warning if that warning matches.

Usage:

build.webpack.setConfig({
  configPath: "./webpack.config.js"
})

/@microsoft/gulp-core-build-webpack/

    Package Sidebar

    Install

    npm i @microsoft/gulp-core-build-webpack

    Weekly Downloads

    9,776

    Version

    6.0.3

    License

    MIT

    Unpacked Size

    30.4 kB

    Total Files

    13

    Last publish

    Collaborators

    • microsoft1es
    • odspnpm