I’m using copy-webpack-plugin
to copy build folders and send them to prod
folder like that:
if (config.env.production) {
webpackConfig.plugins.push(
new CopyPlugin([
{ from: config.paths.root+'/app', to: config.paths.prod+'/app' },
{ from: config.paths.root+'/config', to: config.paths.prod+'/config' },
{ from: config.paths.root+'/resources', to: config.paths.prod+'/resources' },
{ from: config.paths.root+'/vendor', to: config.paths.prod+'/vendor' },
//{ from: config.paths.root+'/dist', to: config.paths.prod+'/dist' },
]),
);
}
The only problem is with dist/
folder. Webpack return this warning:
WARNING - unable to locate ‘M:\website\wp-content\themes\theme/dist’ at ‘M:\website\wp-content\themes\theme/dist’
Any idea?