title: Webpack copy files from dist to another directory
body: <p>Hope I'm saying this correctly. I have a Vue2 project that I need to create multiple bundle.js/css and copy to different directories. I would need all the files from the dist folder and copy to another. </p>
  
  <p>I've been searching online but confused with all the different approaches which is not working for me. Below are a few approaches I tried. </p>
  
  <p>Approach 1 = webpack.prod.conf.js</p>
  
  <pre><code>new CopyWebpackPlugin([
        {
          from: path.resolve(__dirname, '../static'),
          to: config.build.assetsSubDirectory,
          ignore: ['.*']
        }
      ]),
  </code></pre>
  
  <p>Approach 2 = webpack.prod.conf.js</p>
  
  <pre><code>entry: {
    app: './src/app.js',
  },
  output: {
      path: config.build.assetsRoot,
      //filename: utils.assetsPath('js/[name].[chunkhash].js'),
      //chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
      filename: utils.assetsPath('js/[name].js'),
      chunkFilename: utils.assetsPath('js/[id].js')
    },
  </code></pre>
  
  <p>Approach 3 = index.js</p>
  
  <pre><code>  build: {
      // Template for index.html
      index: path.resolve(__dirname, '../dist/index.html'),
  
      // Paths
      assetsRoot: path.resolve(__dirname, '../dist'),
      assetsSubDirectory: 'static',
      assetsPublicPath: '/',
  
      /**
       * Source Maps
       */
  
      productionSourceMap: true,
      // https://webpack.js.org/configuration/devtool/#production
      devtool: '#source-map',
  
      // Gzip off by default as many popular static hosts such as
      // Surge or Netlify already gzip all static assets for you.
      // Before setting to `true`, make sure to:
      // npm install --save-dev compression-webpack-plugin
      productionGzip: false,
      productionGzipExtensions: ['js', 'css'],
  
      // Run the build command with an extra argument to
      // View the bundle analyzer report after build finishes:
      // `npm run build --report`
      // Set to `true` or `false` to always turn it on or off
      bundleAnalyzerReport: process.env.npm_config_report
    }
  }
  </code></pre>