Skip to content

Build options: Limiting Webpack entry points

Andrew Koltyakov edited this page Jan 15, 2020 · 1 revision

In projects with a larger code base and many entry points when build time is relevantly bloated and becomes not comfortable, especially as you know that within many only some entry points are at active development, there is a special parameter in sp-build-tasks which reduces the active entry points.

To limit an entry point you can start watch, or build, or start commands with --webpack-targets argument:

gulp watch --webpack-targets=target1.js,target2.js

Where target1.js and so on is a target from app.js/webpackItemsMap/*.