forked from enaqx/flux-boilerplate
/
webpack.config.js
46 lines (44 loc) · 1.09 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
46
/*
* Webpack configuration object
*/
var bourbon = require('node-bourbon').includePaths;
var path = require("path");
var webpack = require('webpack');
module.exports = {
context : __dirname,
entry : [
'webpack/hot/dev-server',
'./app/js/components/App.js'
],
output : {
path: __dirname,
filename: './app/js/bundle.min.js'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
module: {
loaders: [
{test: /\.es6\.js$/,
loader: 'es6-loader'},
{test: /\.jsx$/,
loaders: ['react-hot', 'jsx-loader?harmony&insertPragma=React.DOM']},
{test: /\.scss$/,
loader: "style!css!sass?outputStyle=expanded&includePaths[]=" +
bourbon}
/*
(path.resolve(__dirname, './app/scss'))}
*/
]
},
resolve : {
extensions: ['', '.js', '.jsx'],
alias : {
actions : __dirname + '/app/js/actions',
constants : __dirname + '/app/js/constants',
dispatcher: __dirname + '/app/js/dispatcher',
stores : __dirname + '/app/js/stores'
}
}
};