const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');

const webpackConfig = require('./webpack.config');

module.exports = (env) => {
	env = env || {};
	const baseConfig = webpackConfig(env);

	baseConfig.plugins.push(new CopyWebpackPlugin({
		patterns: [
			{
				 from: 'ui/web-view/*.html',
				 globOptions: {
					 dot: false
				 }
			}
		]
	}))

	baseConfig.plugins.push(new webpack.DefinePlugin({
		__CI__: !!process.env.CI
	}))

	return baseConfig;
};

@@ -278,38 +278,26 @@
 gin(
-%7B%0A%09%09patterns: 
 %5B%0A
-%09
 %09%09%7B
-%0A%09%09%09%09
  from
+: %7B glob
 : 'u
@@ -319,64 +319,26 @@
 ml',
-%0A%09%09%09%09 globOptions: %7B%0A%09%09%09%09%09 dot: false%0A%09%09%09%09 %7D%0A%09%09%09%7D%0A%09%09%5D%0A%09%7D
+ dot: false %7D %7D%0A%09%5D
 ))%0A%0A

use correct copy-webpack-plugin syntax