This PR introduces functionality for users who currently use the `withNx` and `withReact` plugins in their webpack configuration to migrate to the `NxAppWebpackPlugin`. The `nxUseLegacyPlugin` wraps the legacy style function so that it continues to work with the standardized generated webpack config. By implementing this change, the aim is to provide a consistent method for users opting to transition to inferred targets. This ensures a smoother migration process, offering better integration and reducing potential configuration complexities.
31 lines
1.4 KiB
JSON
31 lines
1.4 KiB
JSON
{
|
|
"name": "convert-config-to-webpack-plugin",
|
|
"factory": "./src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "NxWebpackConvertConfigToWebpackPlugin",
|
|
"description": "Convert existing Webpack project(s) using `@nx/webpack:webpack` executor that uses `withNx` to use `NxAppWebpackPlugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
|
|
"title": "Convert Webpack project using withNx to NxAppWebpackPlugin",
|
|
"type": "object",
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"description": "The project to convert from using the `@nx/webpack:webpack` executor and `withNx` plugin to use `NxAppWebpackPlugin`.",
|
|
"x-priority": "important"
|
|
},
|
|
"skipFormat": {
|
|
"type": "boolean",
|
|
"description": "Whether to format files at the end of the migration.",
|
|
"default": false
|
|
}
|
|
},
|
|
"presets": []
|
|
},
|
|
"description": "Convert the project to use the `NxAppWebpackPlugin` and `NxReactWebpackPlugin`.",
|
|
"implementation": "/packages/webpack/src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin.ts",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/webpack/src/generators/convert-config-to-webpack-plugin/schema.json",
|
|
"type": "generator"
|
|
}
|