<commit_before>'use strict';

var path = require('path');
var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");

var srcBase = path.resolve(__dirname, 'src/' ),
    buildBase = path.resolve( __dirname, 'build/' );


module.exports = {
  entry: {
      'hot': ['webpack/hot/dev-server','webpack-dev-server/client?http://localhost:8080'],
      'index': srcBase + '/assets/js/index.es6',
      'news': srcBase + '/assets/js/news.es6',
      'login': srcBase + '/assets/js/login.es6'
    },
    plugins: [
      new ExtractTextPlugin("[name].css"),
      new CommonsChunkPlugin('common', 'common.js', ['index', 'news', 'login'])
    ],
    module: {
    loaders: [{
      test: /\.jsx$/,
      loader: 'babel-loader'
    }, {
      test: /\.es6$/,
      loader: 'babel-loader'
    }, {
      test: /\.css$/,
      loader: ExtractTextPlugin.extract("style-loader", "css-loader")
      //loader: ExtractTextPlugin.extract("style-loader", "css-loader!postcss-loader")
    },
    {
      test: /\.less$/,
      loader: ExtractTextPlugin.extract("style-loader", "css-loader!autoprefixer-loader!less-loader")
      //loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader!postcss-loader")
    },
    {
      test: /\.scss$/,
      loader: ExtractTextPlugin.extract("style-loader", "css-loader!autoprefixer-loader!sass-loader")
      //loader: ExtractTextPlugin.extract("style-loader", "css-loader!sass-loader!postcss-loader")
    },
    {
      test: /\.(png|jpg)$/, 
      loader: 'url-loader?limit=16384'
    }]
  },
  output: {
      path: buildBase,
      filename: '[name].bundle.js',
      publicPath: "http://localhost:8080/assets/"
  },<commit_msg>[Feature]js，css压缩<commit_after>'use strict';

var path = require('path');
var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');

var srcBase = path.resolve(__dirname, 'src/' ),
    buildBase = path.resolve( __dirname, 'build/' );


module.exports = {
  entry: {
      'hot': ['webpack/hot/dev-server','webpack-dev-server/client?http://localhost:8080'],
      'index': srcBase + '/assets/js/index.es6',
      'news': srcBase + '/assets/js/news.es6',
      'login': srcBase + '/assets/js/login.es6'
    },
    plugins: [
      new ExtractTextPlugin("[name].css"),
      new CommonsChunkPlugin('common', 'common.js', ['index', 'news', 'login'])
      ,
      new UglifyJsPlugin({
        mangle: {
          except: ['$super', '$', 'module', 'exports', 'require', 'angular'],
        },
        exclude: /vendor/i,
        compress: {
          warnings: false
        }
      })
    ],
    module: {
    loaders: [{
      test: /\.jsx$/,
      loader: 'babel-loader'
    }, {
      test: /\.es6$/,
      loader: 'babel-loader'
    }, {
      test: /\.css$/,
      loader: ExtractTextPlugin.extract("style-loader", "css-loader?minimize")
      //loader: ExtractTextPlugin.extract("style-loader", "css-loader!postcss-loader")
    },
    {
      test: /\.less$/,
      loader: ExtractTextPlugin.extract("style-loader", "css-loader?minimize!autoprefixer-loader!less-loader")
      //loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader!postcss-loader")
    },
    {
      test: /\.scss$/,
      loader: ExtractTextPlugin.extract("style-loader", "css-loader?minimize!autoprefixer-loader!sass-loader")
      //loader: ExtractTextPlugin.extract("style-loader", "css-loader!sass-loader!postcss-loader")
    },
    {
      test: /\.(png|jpg)$/, 
      loader: 'url-loader?limit=16384'
    }]
  },
  output: {
      path: buildBase,
      filename: '[name].bundle.js',
      publicPath: "http://localhost:8080/assets/"
  },
{'fraction_non_alphanumeric': 0.18927362665972403, 'fraction_numerical': 0.008851861494402499, 'mean_word_length': 2.9405128205128204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3663537', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1245, 'n_words': 189}