Uncaught TypeError: fs.readFileSync is not a function

The following webpack.config.js is working for me. It incorporates @also’s good idea for the brfs matcher: var webpack = require(‘webpack’) var path = require(‘path’) module.exports = { entry: ‘./app.js’, output: { path: __dirname, filename: ‘bundle.js’ }, resolve: { extensions: [”, ‘.js’], alias: { webworkify: ‘webworkify-webpack’, ‘mapbox-gl’: path.resolve(‘./node_modules/mapbox-gl/dist/mapbox-gl.js’) } }, module: { loaders: [ { test: … Read more