-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
49 lines (47 loc) · 1.92 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
'use strict';
var config
= { entry: './src/entry'
, debug: true
, devtool: 'source-map'
, devServer: { contentBase: '.'
, port: 4008
, stats: 'errors-only'
}
, output: { path: './assets'
, pathinfo: true
, publicPath: '/assets'
, filename: 'bundle.js'
}
, module: { loaders: [ { test: /\.purs$/
, loader: 'purs-loader'
, query: { src: [ 'lib/purescript-*/src/**/*.purs'
, 'bower_components/purescript-*/src/**/*.purs'
, 'src/**/*.purs'
]
, bundle: true
, psc: 'psa'
, pscArgs: { sourceMaps: true }
, pscIde: true
, bundleNamespace: 'PS',
}
}
, { test: /\.js$/
, loader: 'source-map-loader'
, exclude: /node_modules|bower_components/
}
, { test: /\.scss$/
, loaders: ["style", "css", "sass"]
}
, { test: /\.css$/
, loaders: ["style", "css"]
}
, { test: /\.(woff|ttf|eot|svg)/
, loader: 'url-loader'}
]
}
, resolve: { modulesDirectories: [ 'lib', 'node_modules', 'bower_components' ]
, extensions: [ '', '.purs', '.js', '.css']
}
}
;
module.exports = config;