-
Notifications
You must be signed in to change notification settings - Fork 5
/
webpack.config.js
34 lines (33 loc) · 1005 Bytes
/
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
const path = require('path');
const fs = require('fs');
module.exports = {
entry: './src/client/clientEntryPoint.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
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/lance-gg'),
fs.realpathSync('./node_modules/lance-gg')
],
loader: 'babel-loader',
query: {
presets: ['babel-preset-es2015'].map(require.resolve)
}
}
]
},
resolve: {
alias: { lance: path.resolve(__dirname, 'node_modules/lance-gg/src/') }
}
};