`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 install @microsoft/gulp-core-build-webpackgulp-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.
webpack.config.js on a package.
typescript
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:
`typescript
build.webpack.setConfig({
configPath: "./webpack.config.js"
})
``