forked from DarthFubuMVC/fubumvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
33 lines (31 loc) · 870 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
module.exports = {
entry: {
"root": './javascript/root.jsx',
"lq": './javascript/lightning-queues.jsx',
"marten": './javascript/marten.jsx'
},
output: {
path: __dirname + '/src/DiagnosticsHarness/fubu-diagnostics',
//path: __dirname + '/src/FubuMVC.Core/fubu-diagnostics',
filename: "[name].js",
publicPath: '/client/public/javascript/',
pathinfo: true
},
resolve: {
// Allow to omit extensions when requiring these files
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{ test: /\.jsx$/, loader: 'babel'},
{ test: /\.js$/, exclude: /(node_modules)|(-data\.js$)/, loader: "babel"}
]
},
externals: {
// require("jquery") is external and available
// on the global var jQuery
"jquery": "jQuery"
},
devtool: 'eval'
}