-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
37 lines (36 loc) · 1.13 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
var path = require('path');
var fs = require('fs');
module.exports = {
entry: './src/client/clientEntryPoint.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
preLoaders: [
{ test: /\.json$/, exclude: /node_modules/, loader: 'json' },
{ test: /(ServerEngine)/, loader: 'null' }
],
loaders: [
{ test: /\.css$/, loader: 'style!css' },
{
test: /\.scss$/,
loaders: ['style-loader', 'raw-loader', 'sass-loader']
},
{
test: /\.js$/,
include: [
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'node_modules/incheon'),
fs.realpathSync('./node_modules/incheon')
],
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
},
resolve: { fallback: path.join(__dirname, 'node_modules') },
resolveLoader: { fallback: path.join(__dirname, 'node_modules') }
};