text: const path = require('path')
  
  module.exports = {
    output:{
      path: path.join(__dirname, '../dist'),
      publicPath: '/public/', //帮助我们区分url是静态资源还是api请求
    },
    resolve: {
      extensions: ['.js', '.jsx']
    },
    module: {
      rules: [
        {
          enforce: 'pre',
          test: /.(js|jsx)$/,
          loader: 'eslint-loader',
          exclude: [
            path.resolve(__dirname, '../node_modules')
          ]
        },
        {
          test: /.jsx$/,
          loader: 'babel-loader'
        },
        {
          test: /.js$/,
          loader: 'babel-loader',
          exclude: [
            path.join(__dirname, '../node_modules')
          ]
        }
      ]
    },
  }
  