text: /**
   * Created by 96004 on 2017/7/25.
   */
  let path = require('path');
  let HtmlWebpackPlugin = require('html-webpack-plugin');
  module.exports = {
      entry: './todos/index.js',
      output: {
          path: path.resolve('build'),
          filename: "bundle.js"
      },
      devtool: "source-map",
      module: {
          rules: [
              {
                  test: /\.jsx?$/,
                  use: "babel-loader",
                  exclude: /node_modules/
              },
              {
                  test: /\.less$/,
                  use: ["style-loader", "css-loader", "less-loader"]
              },
              {
                  test: /\.css/,
                  use: ["style-loader", "css-loader"]
              },
              {
                  test: /\.(gif|png|jpg|eot|woff|woff2|ttf|svg)$/,
                  use: "url-loader?limit=8192"
              }
          ]
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: './todos/index.html'
          })
      ]
  }