forked from metapensiero/metapensiero.pj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
45 lines (40 loc) · 1.03 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// -*- coding: utf-8 -*-
// :Progetto: metapensiero.pj -- webpack config
// :Creato: dom 06 mar 2016 20:17:46 CET
// :Autore: Alberto Berti <alberto@metapensiero.it>
// :Licenza: GNU General Public License version 3 or later
//
var path = require('path');
module.exports = {
context: __dirname + "/js",
entry: "./colorflash/colorflash.js",
output: {
path: __dirname + "/www/colorflash",
filename: "bundle.js"
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['es2015'],
plugins: ['transform-runtime']
}
}
],
preLoaders: [
{
test: /\.js$/,
loader: "source-map-loader"
}
]
},
resolve: {
alias: {
mylib: path.resolve('./js/mylib')
}
},
devtool: "#source-map"
};