]> git.r.bdr.sh - rbdr/sumo/blame_incremental - config/webpack.js
Initial Project Setup (#2)
[rbdr/sumo] / config / webpack.js
... / ...
CommitLineData
1'use strict';
2
3const Path = require('path');
4
5module.exports = {
6 entry: './lib/sumo',
7
8 output: {
9 path: Path.resolve(__dirname, '../assets'),
10 filename: 'bundle.js',
11 publicPath: '/assets/',
12 library: 'Sumo'
13 },
14
15 module: {
16 rules: [
17 {
18 test: /\.js$/,
19 use: {
20 loader: 'babel-loader',
21 options: {
22 presets: ['babel-preset-env']
23 }
24 }
25 }
26 ]
27 }
28}