-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
45 lines (39 loc) · 1.13 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
var path = require('path');
var webpack = require("webpack");
module.exports = {
entry: {
demoApp: "./src/app/app.js"
},
output: {
path: path.join(__dirname, "build"),
filename: "[name].bundle.js"
},
module: {
loaders: [
{
test: /\.js$/,
include: path.join(__dirname, 'src'),
exclude: [/app\/lib/, /jspm_packages/, /.tmp/, /build/, /gulp/, /node_modules/],
loader: ['babel-loader'], query: {stage: 0}
},
{test: /\.rt$/, loader: 'babel-loader!react-templates-loader'},
{test: /\.html$/, loader: 'raw'},
{test: /\.styl$/, loader: 'style!css!stylus'},
{test: /\.css$/, loader: "style-loader!css-loader"},
]
},
resolve: {
alias: {
annotations: path.join(__dirname, "src/app/core/annotations")
}
},
plugins: [
new webpack.ProvidePlugin({
jQuery: "jquery",
$: "jquery",
"window.jQuery": "jquery",
_: "lodash",
"window._": "lodash",
})
]
};