webpack.config.js 494 B

12345678910111213141516171819
  1. const webpack = require('webpack');
  2. module.exports = {
  3. entry: './build/index.js',
  4. mode: 'development',
  5. output: {
  6. path: require('path').join(__dirname, 'build'),
  7. filename: 'bundle.js'
  8. },
  9. plugins: [
  10. new webpack.DefinePlugin({
  11. // Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
  12. 'process.env': '{}',
  13. // Needed for various packages using cwd(), like the path polyfill
  14. process: { cwd: () => '/' }
  15. })
  16. ],
  17. bail: true
  18. };