forked from systemaccounting/mxfactorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
49 lines (47 loc) · 1.24 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
47
48
49
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './app/client.js',
output: {
path: './build',
filename: 'bundle.js',
},
devtool: 'inline-source-map',
devServer: {
inline: true,
port: 8080
},
resolve: {
extensions: ['', '.js', '.jsx'],
modulesDirectories: ['node_modules', 'app', 'static']
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
exclude: '/node_modules/',
},
{
test: /\.css/,
loaders: ['style', 'css', 'sass'],
exclude: '/node_modules/',
},
{
test: /\.scss/,
loaders: ['style', 'css', 'sass'],
exclude: '/node_modules/',
},
{
test: /\.html/,
loader: 'html',
exclude: '/node_modules/',
},
{
test: /\.(png|gif|jpe?g|svg)$/i,
loader: 'file-loader?name=static/images/[name].[ext]',
exclude: '/node_modules/',
}
],
}
};