2016-11-10 13:04:45 +01:00
|
|
|
module.exports = {
|
|
|
|
|
entry: ['babel-polyfill', './crawl.js'],
|
|
|
|
|
target: 'node',
|
|
|
|
|
|
|
|
|
|
output: {
|
|
|
|
|
path: __dirname + "/build",
|
2017-10-31 20:20:09 +01:00
|
|
|
filename: "crawler.js"
|
2016-11-10 13:04:45 +01:00
|
|
|
},
|
|
|
|
|
module: {
|
|
|
|
|
|
|
|
|
|
loaders: [{
|
|
|
|
|
test: /.js?$/,
|
|
|
|
|
loader: 'babel-loader',
|
2017-10-31 20:20:09 +01:00
|
|
|
exclude: /node_modules/
|
2016-11-10 13:04:45 +01:00
|
|
|
}, {
|
|
|
|
|
test: /.json?$/,
|
|
|
|
|
loader: 'json-loader',
|
2017-04-02 03:31:39 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
test: /\.css$/,
|
|
|
|
|
use: ['style-loader', 'css-loader']
|
2016-11-10 13:04:45 +01:00
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
}
|