text: const path = require('path');
  const webpack = require('webpack');
  const nodeExternals = require('webpack-node-externals');
  
  module.exports = {
    entry: {
      canopy: './src/client/canopy.js',
      parser: './src/parser/parser.js'
    },
    output: {
      filename: '[name].js',
      path: path.resolve(__dirname, 'dist')
    },
    resolve: {
      modules: [
        path.resolve(__dirname, 'src/'),
        path.resolve(__dirname, 'src/client/'),
        path.resolve(__dirname, 'src/parser/'),
        path.resolve(__dirname, 'src/shared/'),
        'node_modules'
      ],
      extensions: [ '.js' ]
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: "babel-loader"
          }
        },
        {
          test:/\.(s*)css$/,
          use:['style-loader','css-loader', 'sass-loader']
        },
        {
          test: /\.svg$/,
          loader: 'raw-loader'
        }
      ]
    },
  
    stats: { colors: true },
    target: 'node',
    devtool: false,
    plugins: [
      new webpack.SourceMapDevToolPlugin({
        filename: "[file].map",
        exclude: ["parser.js"]
      })
    ]
  }
  