<commit_before>import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import autoprefixer from 'autoprefixer';

const nconf  = require('nconf');
nconf.use('memory').defaults({
  'optimize': true
});

import banner from './dev/banner';
const VERSION = require('./package.json').version;

export default function getConfig() {

  const optimize = nconf.get('optimize');
  const minimize = optimize ? 'minimize' : '-minimize';
  let cssQuery = `css?limit=32768?sourceMap&${minimize}&name=images/[name].[ext]!postcss!less`;

  let ENV_VAR = {
    'process.env': {
      'VERSION': JSON.stringify(VERSION),
      'process.env.NODE_ENV': JSON.stringify('production')
    }
  };

  let config = {

    context: __dirname,

    entry: {
      'availity-angular': './lib/index.js'
    },

    output: {
      path: 'dist',
      filename: optimize ? 'js/[name].min.js' : 'js/[name].js',
      library: 'availity',
      libraryTarget: 'umd'
    },

    externals: {
      'jquery': 'jQuery'
    },

    devtool: 'source-map',

    debug: false,
    cache: false,
    watch: false,

    stats: {<commit_msg>make jquery, angualr, lodash and tracekit external to lib<commit_after>import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import autoprefixer from 'autoprefixer';

const nconf  = require('nconf');
nconf.use('memory').defaults({
  'optimize': true
});

import banner from './dev/banner';
const VERSION = require('./package.json').version;

export default function getConfig() {

  const optimize = nconf.get('optimize');
  const minimize = optimize ? 'minimize' : '-minimize';
  let cssQuery = `css?limit=32768?sourceMap&${minimize}&name=images/[name].[ext]!postcss!less`;

  let ENV_VAR = {
    'process.env': {
      'VERSION': JSON.stringify(VERSION),
      'process.env.NODE_ENV': JSON.stringify('production')
    }
  };

  let config = {

    context: __dirname,

    entry: {
      'availity-angular': './lib/index.js'
    },

    output: {
      path: 'dist',
      filename: optimize ? 'js/[name].min.js' : 'js/[name].js',
      library: 'availity',
      libraryTarget: 'umd'
    },

    externals: {
      'jquery': 'jQuery',
      'angular': 'angular',
      'lodash': '_',
      'tracekit': 'TraceKit'
    },

    devtool: 'source-map',

    debug: false,
    cache: false,
    watch: false,

    stats: {
{'fraction_non_alphanumeric': 0.1672940192388122, 'fraction_numerical': 0.004182350480970306, 'mean_word_length': 3.2486678507992894, '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': '7301379', 'n_tokens_mistral': 825, 'n_tokens_neox': 778, 'n_words': 167}