const path = require('path') module.exports = { entry: './src/js/index.js', output: { path: path.resolve(__dirname, 'public/'), filename: 'bundle.js' }, devtool: 'source-map', module: { loaders: [ { test: /\.css$/, loader: 'style-loader!css-loader' } ] } }