-
Notifications
You must be signed in to change notification settings - Fork 3
/
webpack.config.js
36 lines (35 loc) · 1.05 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
/* global require, __dirname, module */
var path = require('path');
var webpack = require('webpack');
/* eslint no-single-line-objects:0 */
module.exports = {
entry: [
'./shared/puzzle.coffee',
'./shared/player.coffee',
'./client/static/css/room.sass',
'./client/static/css/svg.sass',
'./client/static/js/keymanager.coffee',
'./client/static/js/puzzlemanager.coffee',
'./client/static/js/room.coffee',
'./client/static/js/svg.coffee'
],
output: {
path: __dirname + '/client/static/js/',
filename: 'crosswords.js',
publicPath: '/scripts/'
},
plugins: [
new webpack.NoErrorsPlugin()
],
resolve: {
extensions: ['', '.js', '.coffee']
},
module: {
loaders: [
{ test: /\.coffee$/, loaders: ['imports?this=>window', 'coffee'], exclude: /node_modules/ },
{ test: /\.js$/, loaders: ['babel'], exclude: /node_modules/ },
{ test: /\.sass?$/, loaders: ['style', 'css', 'sass?indentedSyntax'], exclude: /node_modules/ },
{ test: /\.jade$/, loaders: ['html', 'jade-html']}
]
}
};