UNPKG

@nx/webpack

Version:

The Nx Plugin for Webpack contains executors and generators that support building applications using Webpack.

11 lines (10 loc) 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasPlugin = hasPlugin; const devkit_1 = require("@nx/devkit"); function hasPlugin(tree) { const nxJson = (0, devkit_1.readNxJson)(tree); return !!nxJson.plugins?.some((p) => typeof p === 'string' ? p === '@nx/webpack/plugin' : p.plugin === '@nx/webpack/plugin'); }