]> git.r.bdr.sh - rbdr/sumo/blob - config/webpack.js
db1837a19222f95972f4978834fe1e4de71aadc5
[rbdr/sumo] / config / webpack.js
1 'use strict';
2
3 const Path = require('path');
4
5 module.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 }