testcafe-workshop/webpack.config.js
2016-05-03 07:20:53 -06:00

18 lines
394 B
JavaScript

const {resolve} = require('path')
module.exports = {
entry: './js/app.js',
output: {
filename: 'bundle.js',
path: resolve(__dirname, 'dist'),
pathinfo: true,
},
context: resolve(__dirname, 'src'),
devtool: 'eval',
module: {
loaders: [
{test: /\.js$/, loader: 'babel!eslint', exclude: /node_modules/},
{test: /\.css$/, loader: 'style!css'},
],
},
}