MCPcopy
hub / github.com/webpack/sass-loader / isProductionLikeMode

Function isProductionLikeMode

src/utils.js:172–174  ·  view source on GitHub ↗

* @param {LoaderContext} loaderContext loader context * @returns {boolean} true when mode is production, otherwise false

(loaderContext)

Source from the content-addressed store, hash-verified

170 * @returns {boolean} true when mode is production, otherwise false
171 */
172function isProductionLikeMode(loaderContext) {
173 return loaderContext.mode === "production" || !loaderContext.mode;
174}
175
176/**
177 * Derives the sass options from the loader context and normalizes its values with sane defaults.

Callers 1

getSassOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…