Skip to content

Conversation

@anikethsaha
Copy link
Member

What kind of change does this PR introduce?

refactoring

Did you add tests for your changes?
NA

If relevant, did you update the documentation?
NA

Summary
Changed the naming of the current naming of the webpack plugin in the add-generator to a better and standard way of naming. The earlier one was creating error name when passed something like extract-text-webpack-plugin, it would give the plugin in config file like this

	plugins: new Extract() - textPlugin,

With this refractor
It will output the config file plugin with this

plugins: new ExtractTextWebpackPlugin(),

Does this PR introduce a breaking change?

No

Other information
NA

Passing {configFile:configFile} to the env.run(generator) as second
argument in packages/utils/modify-config.ts and using this property in generator class to get the
configPath in generator class constructor in remove-generator.ts
added semicolon in line 35
removed the blank line and added space in env.run method 's second argument.
removed the if-statement and added space
Changed the init-generator code to fix the entry point issue when the
entry point was answered
Changed the init-generator code to fix the entry point issue when the
entry point was answered
Changed the naming of the webpack plugin for the config file to a better
and standard form of naming.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants