text: const path = require("path");
  const webpack = require("webpack");
  const ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  module.exports = {
      context: path.resolve("./src"),
  
      entry: {
          vendor: [ "jquery", "d3-cloud" ],
          cloud: [ "./cloud/index.js", "./cloud/resource/index.less" ],
      },
  
      output: {
          path: path.resolve("./public/assets"),
          publicPath: "/assets/",
          filename: "[name]/bundle.js"
      },
  
      resolve: {
          extensions: [ "", ".js", ".less" ]
      },
  
      devtool: "source-map",
  
      module: {
          loaders: [
              {
                  test: /\.js?$/,
                  loaders: [ "babel" ],
                  include: path.join(__dirname, 'src/')
              },
              {
                  test: /\.less$/,
                  loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader")
              }
          ]
      },
  
      plugins: [
          new webpack.HotModuleReplacementPlugin(),
  
          new webpack.NoErrorsPlugin(),
  
          new webpack.ProvidePlugin({
              "$": "jquery",
              "cloud": "d3-cloud"
          }),
  
          new webpack.optimize.CommonsChunkPlugin({
              name: "vendor",
              filename: "vendor.js",
              minChunks: Infinity
          }),
  
          new ExtractTextPlugin("./[name]/resource/bundle.css")
      ]
  };
  