The webpack configuration file uses the variables in the configuration

I want to use output.path in another place.

like this

output  : {
    path : outputDir
},

plugins:[
    new CleanWebpackPlugin(["dist"], {
        root : {output.path}  //--->output.path
    }),
]

can webpack do that?


just use outputDir directly


OK, no problem

Menu