webpack.config.js 387 B

1234567891011121314151617181920
  1. module.exports = {
  2. entry : "./app/index.js",
  3. output: {
  4. filename: "./bundle.js"
  5. },
  6. module: {
  7. rules: [ {
  8. test: /\.(js|jsx)$/,
  9. loader: "babel-loader",
  10. exclude: [ /node_modules/ ],
  11. options: {
  12. presets: [ "react", "env" ]
  13. }
  14. } ]
  15. },
  16. devServer: {
  17. open: true,
  18. historyApiFallback: true
  19. }
  20. };