crawlers and savers
This commit is contained in:
23
crawler/webpack.config.js
Normal file
23
crawler/webpack.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
module.exports = {
|
||||
entry: ['babel-polyfill', './crawl.js'],
|
||||
target: 'node',
|
||||
|
||||
output: {
|
||||
path: __dirname + "/build",
|
||||
filename: "crawler.js",
|
||||
devtool: 'source-map'
|
||||
},
|
||||
module: {
|
||||
|
||||
loaders: [{
|
||||
test: /.js?$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules/,
|
||||
presets: ['es2015'],
|
||||
plugins: ['transform-async-to-generator']
|
||||
}, {
|
||||
test: /.json?$/,
|
||||
loader: 'json-loader',
|
||||
}]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user