after changing the files will be created in the "dist" folder without any conflict with function mix.setPublicPath.
Working examples below:
mix.html(); // save to 'dist/'
// or
mix.html({
output: 'html', // save to 'html/'
});
// or
mix.setPublicPath('dist');
mix.html(); // save to 'dist/dist/'
// or
mix.setPublicPath('dist');
mix.html({
output: 'html', // save to 'dist/html/'
});
// or
mix.setPublicPath('dist');
mix.html({
output: '', // save to 'dist/'
});
Previously, this configuration returned errors because it tried to create a file in the root folder because of the trailing slash.
after changing the files will be created in the "dist" folder without any conflict with function
mix.setPublicPath
.Working examples below: