-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathwebpack.config.js
executable file
·26 lines (23 loc) · 1.04 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
var path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'app/window.jsx'),
output: {
path: path.resolve(__dirname, 'out'),
publicPath: 'out/',
filename: 'app.js'
},
target: 'electron',
module: {
loaders: [
{ test: /\.jsx?$/, exclude: /node_modules/, loaders: ['babel-loader'] },
{ test: /\.css$/, loader: 'style-loader!css-loader' },
{ test: /\.scss$/, loaders: ['style-loader', 'css-loader', 'sass-loader']},
{ test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff' },
{ test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff' },
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=10000&mimetype=application/octet-stream' },
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file-loader' },
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=10000&mimetype=image/svg+xml' },
{ test: /\.json$/, loader: 'json-loader' }
]
}
};