<commit_before>var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path');

module.exports = {
    entry:
    {
        app: [
            './public/src/containers/app',
        ],
        // vendors: [
        //     'i18Next',
        //     'jqueryLazyload'
        // ]
    },
    output:
    {
        path: path.resolve(__dirname, 'public'),
        filename: './asset/js/bundle/bundle.min.js',
        chunkFilename: "./asset/js/bundle/chunk.[name].min.js"
    },
    // devtool: "source-map",
    resolve:
    {
        alias:
        {
            jqueryLazyload: './public/asset/js/jquery/jquery.lazyload.min.js',
            i18Next: './public/asset/js/i18Next/i18Next.min.js'
        },
        "extensions": ["", ".js", ".jsx"]
    },
    module:
    {
        loaders: [
        {
            test: /\.js?$/,
            loader: 'babel',
            include: path.resolve(__dirname, 'public'),
            exclude: /node_modules/
        },
        {
            test: /\.json$/,
            loader: "json-loader"
        },
        {
            test: /\.scss$/,
            loader: ExtractTextPlugin.extract(
                "style-loader",
                'css-loader!sass-loader?includePaths[]=' + path.resolve(__dirname, './node_modules/compass-mixins/lib')
            )
        },
        {
            test: /\.(jpe?g|png|gif|svg)$/i,
            loader: 'url-loader?limit=8192&name=./asset/img/[name].[ext]'
        }]
    },
    plugins: [
        new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }}),
        // new webpack.optimize.CommonsChunkPlugin('vendors', 'asset/js/vendors.min.js'),
        new ExtractTextPlugin('./asset/css/bundle/bundle.min.css', { allChunks: true }),<commit_msg>update webpack config<commit_after>var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path');

module.exports = {
    entry:
    {
        app: [
            './public/src/containers/app',
        ],
        // vendors: [
        //     'i18Next',
        //     'jqueryLazyload'
        // ]
    },
    output:
    {
        path: path.resolve(__dirname, 'public'),
        filename: './asset/js/bundle/bundle.min.js',
        chunkFilename: "./asset/js/bundle/chunk.[name].min.js"
    },
    // devtool: "source-map",
    resolve:
    {
        alias:
        {
            jqueryLazyload: './public/asset/js/jquery/jquery.lazyload.min.js',
            i18Next: './public/asset/js/i18Next/i18Next.min.js'
        },
        "extensions": ["", ".js", ".jsx"]
    },
    module:
    {
        loaders: [
        {
            test: /\.js?$/,
            loader: 'babel',
            include: path.resolve(__dirname, 'public'),
            exclude: /node_modules/
        },
        {
            test: /\.json$/,
            loader: "json-loader"
        },
        {
            test: /\.css|\.scss$/,
            loader: ExtractTextPlugin.extract(
                "style-loader",
                'css-loader!sass-loader?includePaths[]=' + path.resolve(__dirname, './node_modules/compass-mixins/lib')
            )
        },
        {
            test: /\.(jpe?g|png|gif|svg)$/i,
            loader: 'url-loader?limit=8192&name=./asset/img/[name].[ext]'
        }]
    },
    plugins: [
        new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }}),
        // new webpack.optimize.CommonsChunkPlugin('vendors', 'asset/js/vendors.min.js'),
        new ExtractTextPlugin('./asset/css/bundle/bundle.min.css', { allChunks: true }),
{'fraction_non_alphanumeric': 0.17358803986710963, 'fraction_numerical': 0.006644518272425249, 'mean_word_length': 1.6124367317425885, 'pattern_counts': {'":': 2, '<': 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': '639354', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1126, 'n_words': 152}