File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -291,12 +291,13 @@ export default class AddGenerator extends Generator {
291291 * find the names of each natively plugin and check if it matches
292292 */
293293 if ( action === "plugins" ) {
294- let answeredPluginName = answerToAction . actionAnswer
294+ let answeredPluginName = answerToAction . actionAnswer ;
295295 let isPrefixPresent = / w e b p a c k ./ . test ( answeredPluginName ) ;
296- if ( isPrefixPresent ) {
297- answeredPluginName = answeredPluginName . replace ( "webpack." , "" ) . trim ( )
298- } else {
299- answeredPluginName = answeredPluginName . trim ( )
296+
297+ if ( isPrefixPresent ) {
298+ answeredPluginName = answeredPluginName . replace ( "webpack." , "" ) . trim ( ) ;
299+ } else {
300+ answeredPluginName = answeredPluginName . trim ( ) ;
300301 }
301302 const pluginExist : string = glob
302303 . sync ( [ "node_modules/webpack/lib/*Plugin.js" , "node_modules/webpack/lib/**/*Plugin.js" ] )
You can’t perform that action at this time.
0 commit comments