<commit_before>'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = webpackConfigBuilder;

var _path = require('path');

var _path2 = _interopRequireDefault(_path);

var _autoprefixer = require('autoprefixer');

var _autoprefixer2 = _interopRequireDefault(_autoprefixer);

var _precss = require('precss');

var _precss2 = _interopRequireDefault(_precss);

var _postcssPartialImport = require('postcss-partial-import');

var _postcssPartialImport2 = _interopRequireDefault(_postcssPartialImport);

var _entry = require('./entry');

var _entry2 = _interopRequireDefault(_entry);

var _output = require('./output');

var _output2 = _interopRequireDefault(_output);

var _plugins = require('./plugins');

var _plugins2 = _interopRequireDefault(_plugins);

var _loaders = require('./loaders');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Generates config for webpack.
 */
function webpackConfigBuilder(filename, flags, params) {
  return {
    entry: (0, _entry2.default)(filename, flags, params),
    output: (0, _output2.default)(filename, flags, params),
    debug: !params.isProd,
    devtool: !params.isProd && 'eval',
    plugins: (0, _plugins2.default)(params),
    bail: params.isProd,
    module: {
      preLoaders: (0, _loaders.preloaders)(),
      loaders: (0, _loaders.loaders)(flags, params)
    },
    eslint: {
      configFile: _path2.default.join(__dirname, '../eslint-config.js'),
      useEslintrc: false<commit_msg>chore(build): Update build<commit_after>'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = webpackConfigBuilder;

var _path = require('path');

var _path2 = _interopRequireDefault(_path);

var _autoprefixer = require('autoprefixer');

var _autoprefixer2 = _interopRequireDefault(_autoprefixer);

var _precss = require('precss');

var _precss2 = _interopRequireDefault(_precss);

var _postcssPartialImport = require('postcss-partial-import');

var _postcssPartialImport2 = _interopRequireDefault(_postcssPartialImport);

var _entry = require('./entry');

var _entry2 = _interopRequireDefault(_entry);

var _output = require('./output');

var _output2 = _interopRequireDefault(_output);

var _plugins = require('./plugins');

var _plugins2 = _interopRequireDefault(_plugins);

var _loaders = require('./loaders');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Generates config for webpack.
 */
function webpackConfigBuilder(filename, flags, params) {
  return {
    entry: (0, _entry2.default)(filename, flags, params),
    output: (0, _output2.default)(filename, flags, params),
    debug: !params.isProd,
    devtool: !params.isProd && 'eval',
    plugins: (0, _plugins2.default)(params),
    bail: params.isProd,
    module: {
      preLoaders: (0, _loaders.preloaders)(),
      loaders: (0, _loaders.loaders)(flags, params)
    },
    resolve: {
      modulesDirectories: [_path2.default.dirname(_path2.default.resolve(process.cwd(), filename)), 'web_modules', 'node_modules']
    },
    eslint: {
      configFile: _path2.default.join(__dirname, '../eslint-config.js'),
      useEslintrc: false
{'fraction_non_alphanumeric': 0.13950617283950617, 'fraction_numerical': 0.010493827160493827, 'mean_word_length': 5.069288389513108, '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': '2619856', 'n_tokens_mistral': 1036, 'n_tokens_neox': 1046, 'n_words': 215}