webpack.config.js 386 B

12345678910111213141516171819202122
  1. module.exports = {
  2. entry: "./scripts/main.js",
  3. output: {
  4. path: __dirname,
  5. filename: "bundle.js"
  6. },
  7. node: { fs: 'empty' },
  8. module: {
  9. loaders: [
  10. {
  11. test: /\.js$/,
  12. exclude: /node_modules/,
  13. loader: "babel",
  14. query:
  15. {
  16. presets:['react']
  17. }
  18. }
  19. ]
  20. }
  21. };