forked from asm-products/firesize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
36 lines (33 loc) · 1.2 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
var webpack = require('webpack')
var path = require('path')
module.exports = {
entry: {
bundle: ["!bootstrap-webpack!./assets/bootstrap.config.js",
"font-awesome-webpack!./font-awesome.config.js",
'./assets/javascripts/entry.jsx']},
output: {
path: __dirname + "/static",
publicPath: "",
filename: "js/[name].js",
chunkFilename: "js/[id].js"
},
resolve: {
modulesDirectories: ['node_modules', 'assets'],
fallback: ['./assets']
},
module: {
loaders: [
{ test: /\.css/, loader: "style-loader!css-loader" },
{ test: /\.less$/, loader: "style-loader!css-loader!less-loader" },
{ test: /\.gif/, loader: "url-loader?limit=10000&minetype=image/gif" },
{ test: /\.jpg/, loader: "url-loader?limit=10000&minetype=image/jpg" },
{ test: /\.png/, loader: "url-loader?limit=10000&minetype=image/png" },
{ test: /\.jsx$/, loader: 'jsx-loader?harmony' },
{ test: /\.woff(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }
]
},
plugins: [
new webpack.IgnorePlugin(/vertx/)
]
}