-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwebpack.config.js
43 lines (42 loc) · 1016 Bytes
/
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
let webpack = require('webpack');
module.exports = {
entry: "./src/Maxwell.js",
devtool: 'source-map',
// debug: true,
output: {
path: __dirname + "/dist",
filename: "maxwell.bundle.js"
},
module: {
loaders: [
{ test: /\.coffee/, loader: "coffee-loader" },
{ test: /\.(coffee\.md|litcoffee)$/, loader: "coffee-loader?literate" },
{ test: /\.json$/, loader: 'json-loader'},
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader'
}
]
},
resolve: {
// extensions: [".webpack.js", ".web.js", ".js"]
alias: {
'jquery-ui': 'jquery-ui-dist/jquery-ui.js'
}
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
jqy: "jquery",
'global.jQuery': 'jquery',
'd3': 'd3',
'rickshaw': 'rickshaw'
})
],
// TODO: This fixes "module not found" error on the "fs" module used by CircuitLoader et. a
node: {
fs: "empty"
}
};