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