]>
Commit | Line | Data |
---|---|---|
11be5eba RBR |
1 | 'use strict'; |
2 | ||
3 | const Path = require('path'); | |
4 | ||
5 | module.exports = { | |
0616b3f0 | 6 | entry: ['babel-polyfill', './lib/sumo'], |
11be5eba RBR |
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 | } |