-
Notifications
You must be signed in to change notification settings - Fork 9
/
webpack.config.js
30 lines (29 loc) · 919 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
var webpack = require("webpack");
module.exports = {
entry: [
"./app/app.jsx"
],
output: {
/* global __dirname */
path: __dirname + "/app",
filename: "bundle.js"
},
plugins: [
new webpack.IgnorePlugin(/vertx/)
],
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{ test: /\.less$/, loader: "style!css!less" },
{ test: /\.jsx$/, loaders: ["react-hot", "jsx"] },
{ test: /\.json$/, loader: "json" },
{ test: /\.woff$/, loader: "url-loader?limit=10000&minetype=application/font-woff&name=assets/[name]-[hash].[ext]" },
{ test: /\.ttf$/, loader: "file-loader?name=assets/[name]-[hash].[ext]" },
{ test: /\.eot$/, loader: "file-loader?name=assets/[name]-[hash].[ext]" },
{ test: /\.svg$/, loader: "file-loader?name=assets/[name]-[hash].[ext]" }
]
}
};