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