]> git.r.bdr.sh - rbdr/dasein/blob - config/webpack.js
f808b06bcebccfb1e288eb9b2246d7af8df1e0bb
[rbdr/dasein] / config / webpack.js
1 'use strict';
2
3 const Path = require('path');
4
5 module.exports = {
6 entry: './app/dasein',
7
8 output: {
9 path: Path.resolve(__dirname, '../static/assets'),
10 filename: 'bundle.js',
11 publicPath: '/assets/',
12 library: 'Dasein',
13 libraryTarget: 'umd'
14 },
15
16 module: {
17 loaders: [
18 {
19 test: /\.js$/,
20 exclude: /(node_modules|doc)/,
21 loader: 'babel-loader',
22 query: {
23 presets: ['es2015']
24 }
25 }
26 ]
27 },
28
29 resolve: {
30 modules: [
31 'node_modules',
32 Path.resolve(__dirname, '../app')
33 ],
34
35 alias: {
36 'vue$': 'vue/dist/vue.common.js'
37 }
38 },
39
40 extensions: ['.js', '.json', '.css'],
41
42 context: Path.resolve(__dirname, '..')
43 };