Sample todo app in React
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
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;