forked from scitran/organizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
37 lines (36 loc) · 909 Bytes
/
webpack.config.js
File metadata and controls
37 lines (36 loc) · 909 Bytes
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
/* global __dirname */
'use strict';
module.exports = {
entry: './app/renderer.js',
output: {
path: __dirname + '/build',
filename: 'app.bundle.js',
publicPath: 'http://localhost:8181/build'
},
devtool: '#cheap-source-map',
module: {
preLoaders: [
{
test: /\.js$/,
loaders: ['eslint'],
// define an include so we check just the files we need
exclude: /node_modules/
}
],
loaders: [
{ test: /\.json$/, loader: 'json-loader' },
{ test: /\.scss$/, loaders: ['style', 'css', 'sass'] },
{ test: /\.html$/, loader: 'raw-loader'}
],
// workaround to solve https://github.com/webpack/webpack/issues/138
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
eslint: {
failOnWarning: false,
failOnError: true
},
resolve: {
extensions: ['', '.js']
},
target: 'electron-renderer'
};