Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/better plugin naming #891

Closed
wants to merge 11 commits into from
Closed

Chore/better plugin naming #891

wants to merge 11 commits into from

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