forked from CiderSqueezy/bt-desktop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
executable file
·39 lines (38 loc) · 1.14 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
var path = require('path');
var webpack = require('webpack');
module.exports = {
color: true,
entry: [
"webpack-dev-server/client?http://0.0.0.0:8080",
'webpack/hot/only-dev-server',
'./src/scripts/router'
],
devtool: "eval-source-map",
debug: true,
output: {
path: path.join(__dirname, "public"),
filename: 'app-bundle.js'
},
resolveLoader: {
modulesDirectories: ['node_modules']
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.IgnorePlugin(/vertx|ipc/) // https://github.com/webpack/webpack/issues/353
],
resolve: {
extensions: ['', '.js', 'jsx', '.cjsx', '.coffee']
},
module: {
loaders: [
{ test: /\.scss$/, loader: "style!css!sass?outputStyle=expanded&" +
"includePaths[]=" +
(path.resolve(__dirname, "./node_modules")) },
// { test: /\.css$/, loaders: ['style', 'css']},
{ test: /\.jsx$/, exclude: /(node_modules|bower_components)/, loaders: ['react-hot', 'babel-loader']},
{ test: /\.cjsx$/, loaders: ['react-hot', 'coffee', 'cjsx']},
{ test: /\.coffee$/, loader: 'coffee' }
]
}
};