import path from 'path';
import webpackConfig from './webpack.config.babel';
const join = path.join;
// const relative = path.relative;
const base = join(__dirname, 'src');
const client = `${base}/client`;
const assets = `${base}/assets`;
const dist = `${base}/dist`;
const build = `${base}/build`;

const config = {
  dest: dist,
  clean: {
    src: [dist, build],
  },
  css: {
    base: `${dist}`,
    src: ['**/*.css', build],
  },
  assets: {
    base: `${assets}`,
    src: [dist, build],
  },
  js: {
    base: `${dist}`,
    src: ['**/*.+js', build],
  },
  lint: {
    base: `${base}`,
    src: '**/*.+(js|jsx)',
  },
  webpack: {
    base: `${client}`,
    dest: `${dist}`,
    options: webpackConfig,
  },
};

export default config;

@@ -170,41 +170,8 @@
 ');%0A
-const client = %60$%7Bbase%7D/client%60;%0A
 cons
@@ -199,16 +199,16 @@
 ssets%60;%0A
+
 const di
@@ -281,22 +281,8 @@
 = %7B%0A
-  dest: dist,%0A
   cl
@@ -332,33 +332,28 @@
 %7B%0A    base: 
-%60$%7B
 dist
-%7D%60
 ,%0A    src: %5B
@@ -403,19 +403,14 @@
 se: 
-%60$%7B
 assets
-%7D%60
 ,%0A  
@@ -454,25 +454,20 @@
   base: 
-%60$%7B
 dist
-%7D%60
 ,%0A    sr
@@ -476,17 +476,16 @@
  %5B'**/*.
-+
 js', bui
@@ -587,15 +587,20 @@
  %60$%7B
+base%7D/
 client
-%7D
 %60,%0A 
@@ -612,17 +612,12 @@
 st: 
-%60$%7B
 dist
-%7D%60
 ,%0A  

Fix gulp.config.js