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