Sample todo app in React
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
507B

  1. const webpack = require('webpack');
  2. const path = require('path');
  3. const BUILD_DIR = path.resolve(__dirname, 'public');
  4. const APP_DIR = path.resolve(__dirname, 'src');
  5. const config = {
  6. entry: APP_DIR + '/index.js',
  7. output: {
  8. path: BUILD_DIR,
  9. filename: 'bundle.js'
  10. },
  11. module: {
  12. rules : [
  13. {
  14. test : /\.js?/,
  15. include : APP_DIR,
  16. loader : 'babel-loader'
  17. }
  18. ]
  19. }
  20. };
  21. module.exports = config;