Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
add(name, callback)
{
Encore.reset();
Encore.setOutputPath('public/build/'+name+'/');
Encore.setPublicPath('/build/'+name);
for(let enhavoPackage of this.packages) {
enhavoPackage.initEncore(Encore, name)
}
callback(Encore);
let config = Encore.getWebpackConfig();
config.name = name;
this.configs.push(config);
for(let enhavoPackage of this.packages) {
enhavoPackage.initWebpackConfig(config, name)
}