<commit_before>var webpack = require('webpack');
var UglifyJsPlugin = require('uglifyjs-webpack-plugin');

var env = process.env.WEBPACK_ENV;

module.exports = {
    mode: 'production',
    entry: './src/twig.js',
    target: env === 'browser' ? 'web' : 'node',
    node: {
        __dirname: false,
        __filename: false,
    },
    output: {
        path: __dirname,
        filename: env === 'browser' ? 'twig.min.js' : 'twig.js',
        library: 'Twig',
        libraryTarget: 'umd'
    },
    plugins: env === 'browser' ? [
        new UglifyJsPlugin()
    ] : []
};<commit_msg>Change webpack config to provide un-minified sources in the npm package<commit_after>var webpack = require('webpack');
var UglifyJsPlugin = require('uglifyjs-webpack-plugin');

var env = process.env.WEBPACK_ENV;

module.exports = {
    mode: 'production',
    entry: './src/twig.js',
    target: env === 'browser' ? 'web' : 'node',
    node: {
        __dirname: false,
        __filename: false,
    },
    output: {
        path: __dirname,
        filename: env === 'browser' ? 'twig.min.js' : 'twig.js',
        library: 'Twig',
        libraryTarget: 'umd'
    },
    optimization: {
        minimize: true,
        minimizer: [new UglifyJsPlugin({
            include: /\.min\.js$/
        })]
    }
};
{'fraction_non_alphanumeric': 0.16280864197530864, 'fraction_numerical': 0.0, 'mean_word_length': 2.3952879581151834, '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': '6372012', 'n_tokens_mistral': 429, 'n_tokens_neox': 431, 'n_words': 95}