const path = require('path')
const webpack = require('webpack')

module.exports = {
  debug: true,
  cache: false,
  process: true,
  stats: {
    colors: true
  },
  entry: {
    'scrollto-with-animation': 'src'
  },
  output: {
    path: 'dist',
    filename: '[name].min.js'
  },
  plugins: [
    new webpack.SourceMapDevToolPlugin({
      filename: '[name].js.map'
    }),
    new webpack.optimize.UglifyJsPlugin({
      minimize: true,
      compressor: {
        screw_ie8: true,
        warnings: false
      },
      output: {
        comments: false
      }
    })
  ],
  module: {
    loaders: [{
      test: /\.js?$/,
      exclude: /node_modules/,
      loader: 'babel',
      query: {
        cacheDirectory: true,
        presets: ['es2015', 'stage-2']
      }
    }]
  }
}

@@ -77,16 +77,38 @@
 rts = %7B%0A
+  context: __dirname,%0A
   debug:
@@ -225,14 +225,36 @@
 on':
+ path.join(__dirname,
  'src'
+)
 %0A  %7D
@@ -280,15 +280,37 @@
 ath:
+ path.join(__dirname,
  'dist'
+)
 ,%0A  

Use path for fix webpack build