]> git.r.bdr.sh - rbdr/sorting-hat-renderer/blame_incremental - config/webpack.js
Add jsdoc, fix linter
[rbdr/sorting-hat-renderer] / config / webpack.js
... / ...
CommitLineData
1'use strict';
2
3const Path = require('path');
4
5module.exports = {
6 entry: './lib/sorting_hat',
7
8 output: {
9 path: Path.resolve(__dirname, '../assets'),
10 filename: 'bundle.js',
11 publicPath: '/assets/',
12 library: 'SortingHat',
13 libraryTarget: 'umd'
14 },
15
16 module: {
17 loaders: [
18 {
19 test: /\.js$/,
20 exclude: /doc/,
21 loader: 'babel-loader',
22 query: {
23 presets: ['es2017']
24 }
25 }
26 ]
27 },
28
29 resolve: {
30 modules: [
31 'node_modules',
32 'lib'
33 ],
34
35 alias: {
36 'vue$': 'vue/dist/vue.esm.js'
37 }
38 },
39
40 context: Path.resolve(__dirname, '..')
41};