aboutsummaryrefslogtreecommitdiff
path: root/config/webpack.js
blob: db1837a19222f95972f4978834fe1e4de71aadc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'use strict';

const Path = require('path');

module.exports = {
  entry: './lib/sumo',

  output: {
    path: Path.resolve(__dirname, '../assets'),
    filename: 'bundle.js',
    publicPath: '/assets/',
    library: 'Sumo'
  },

  module: {
    rules: [
      {
        test: /\.js$/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['babel-preset-env']
          }
        }
      }
    ]
  }
}