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

module.exports = {
    devtool: 'source-map',
    debug: true,
    entry: {
        'vendor': ['angular', 'angular-ui-router'],
        'app': ['./client/app/app.js']
    },
    resolve: {
        extensions: ['', '.ts', '.js']
    },
    output: {
        path: './client/build',
        filename: '[name].bundle.js',
        chunkFilename: '[name]_[chunkhash].js',
        //hotUpdateChunkFilename: 'hot/[name].hot-update.js',
        //hotUpdateMainFilename: 'hot/[hash].hot-update.json'
    },
    module: {
        preLoaders: [
            { test: /\.js$/, loader: 'source-map-loader' }
        ],
        loaders: [ 
            { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader", include: path.join(__dirname, 'client/app') },
            { test: /\.ts$/, loader: 'awesome-typescript-loader', exclude: [/\.(spec|e2e)\.ts$/] },
            { test: /\.(html)$/, loader: 'raw-loader' },
            //{ test: /\.scss$/, loader: 'style-loader!css-loader!sass-loader' },
            { test: /\.scss$/, loader: ExtractTextPlugin.extract("css-loader!sass-loader")},
            { test: /\.(jpg|png)$/, loader: 'url?limit=25000'}
        ]
    },
    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            name: "vendor",
            minChunks: Infinity
        }),
        new webpack.optimize.UglifyJsPlugin({
            compress: { warnings: false },
            mangle: false,
            sourcemap: true,
            minimize: true,
            comments: false
        }),
        new OpenBrowserPlugin(),
        //new webpack.HotModuleReplacementPlugin()
        new ExtractTextPlugin("styles.bundle.css")  
    ],
    // configures webpack-dev-server
    devServer: {
        historyApiFallback: true,
        // redirectts to api server on api calls
        proxy: {
            "/api/*": {
                target: "http://localhost:9000"
            }
        }
    }
};<commit_msg>Adding providePlugin in webpack for loading jquery<commit_after>var webpack = require('webpack');
var path = require('path');
var OpenBrowserPlugin = require('open-browser-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");

module.exports = {
    devtool: 'source-map',
    debug: true,
    entry: {
        'vendor': ['angular', 'angular-ui-router'],
        'app': ['./client/app/app.js']
    },
    resolve: {
        extensions: ['', '.ts', '.js']
    },
    output: {
        path: './client/build',
        filename: '[name].bundle.js',
        chunkFilename: '[name]_[chunkhash].js',
        //hotUpdateChunkFilename: 'hot/[name].hot-update.js',
        //hotUpdateMainFilename: 'hot/[hash].hot-update.json'
    },
    module: {
        preLoaders: [
            { test: /\.js$/, loader: 'source-map-loader' }
        ],
        loaders: [ 
            { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader", include: path.join(__dirname, 'client/app') },
            { test: /\.ts$/, loader: 'awesome-typescript-loader', exclude: [/\.(spec|e2e)\.ts$/] },
            { test: /\.(html)$/, loader: 'raw-loader' },
            //{ test: /\.scss$/, loader: 'style-loader!css-loader!sass-loader' },
            { test: /\.scss$/, loader: ExtractTextPlugin.extract("css-loader!sass-loader")},
            { test: /\.(jpg|png)$/, loader: 'url?limit=25000'}
        ]
    },
    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            name: "vendor",
            minChunks: Infinity
        }),
        new webpack.optimize.UglifyJsPlugin({
            compress: { warnings: false },
            mangle: false,
            sourcemap: true,
            minimize: true,
            comments: false
        }),
        new OpenBrowserPlugin(),
        //new webpack.HotModuleReplacementPlugin()
        new ExtractTextPlugin("styles.bundle.css"),
        new webpack.ProvidePlugin({
            '$': 'jquery',
            'jQuery': 'jquery',
            'window.jQuery': 'jquery'
        })
    ],
    // configures webpack-dev-server
    devServer: {
        historyApiFallback: true,
        // redirectts to api server on api calls
        proxy: {
            "/api/*": {
                target: "http://localhost:9000"
            }
        }
    }
};
{'fraction_non_alphanumeric': 0.1735704637550653, 'fraction_numerical': 0.004502476361999099, 'mean_word_length': 1.9268774703557312, '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': '5748810', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1321, 'n_words': 249}