var path = require('path');var webpack = require('webpack');var HtmlWebpackPlugin = require('html-webpack-plugin');module.exports = {entry: ['webpack-dev-server/client?http://localhost:3000','webpack/hot/only-dev-server','react-hot-loader/patch',path.join(__dirname, 'app/index.js')],output: {// path: '/dist',path: path.join(__dirname, '/dist/'),filename: '[name].js',publicPath: '/'},plugins: [new HtmlWebpackPlugin({template: './index.tpl.html',inject: 'body',filename: './index.html'}),new webpack.optimize.OccurenceOrderPlugin(),new webpack.HotModuleReplacementPlugin(),new webpack.NoErrorsPlugin(),new webpack.DefinePlugin({'process.env.NODE_ENV': JSON.stringify('development')})],module:{rules: [{test: /\.js$/,loader: 'babel-loader',exclude: "node_modules",query: {presets: ['react', 'es2015', 'stage-0'],}},{test: /\.css$/,loader: "style-loader!css-loader"},{test: /\.less$/,loader: 'style-loader!css-loader!less-loader'}]}}