<commit_before>import * as webpack from "webpack";
import * as path from "path";
import * as CopyWebpackPlugin from "copy-webpack-plugin";
import { SlimConfig } from "../config/slim-config/slim-config";

export function getCommonConfigPartial(indexPath: string, environment: any, config: SlimConfig) {
    let conf: any = {
        resolve: {
            extensions: [".ts", ".js", ".json"],
            modules: [
                path.resolve(process.cwd(), path.join(config.rootDir, "node_modules")),
                path.resolve(__dirname, "../../", "node_modules")
            ]
        },
        resolveLoader: {
            extensions: [".js"],
            modules: [path.resolve(__dirname, "../../", "node_modules")]
        },
        module: {
            rules: [
                {
                    test: /\.style\.scss$/,
                    use: [
                        "raw-loader",
                        {
                            loader: "postcss-loader",
                            options: {
                                plugins: function () {
                                    return [
                                        require("autoprefixer")
                                    ];
                                }
                            }
                        },
                        {
                            loader: "sass-loader",
                            options: {
                                sourceMap: true,
                                includePaths: config.sass.includePaths
                            }
                        }
                    ]
                },
                {
                    test: /\.scss$/,
                    exclude: /\.style\.scss$/,
                    use: [
                        "style-loader",
                        "css-loader?importLoaders=1",
                        {
                            loader: "sass-loader",
                            options: {
                                sourceMap: true,
                                includePaths: config.sass.includePaths
                            }
                        }
                    ]
                },
                {
                    test: /\.js$/,
                    loader: "source-map-loader",
                    exclude: [
                        /ionic-angular/
                    ]
                },
                { test: /\.json$/, loader: "json-loader" },
                { test: /\.html/, loader: "raw-loader", exclude: [indexPath] },
                { test: /\.css$/, loader: "raw-loader" },
                {
                    test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
                    loader: "url-loader?limit=10000&mimetype=application/font-woff"<commit_msg>fix(webpack): exclude ionic from source map loader<commit_after>import * as webpack from "webpack";
import * as path from "path";
import * as CopyWebpackPlugin from "copy-webpack-plugin";
import { SlimConfig } from "../config/slim-config/slim-config";

export function getCommonConfigPartial(indexPath: string, environment: any, config: SlimConfig) {
    let conf: any = {
        resolve: {
            extensions: [".ts", ".js", ".json"],
            modules: [
                path.resolve(process.cwd(), path.join(config.rootDir, "node_modules")),
                path.resolve(__dirname, "../../", "node_modules")
            ]
        },
        resolveLoader: {
            extensions: [".js"],
            modules: [path.resolve(__dirname, "../../", "node_modules")]
        },
        module: {
            rules: [
                {
                    test: /\.style\.scss$/,
                    use: [
                        "raw-loader",
                        {
                            loader: "postcss-loader",
                            options: {
                                plugins: function () {
                                    return [
                                        require("autoprefixer")
                                    ];
                                }
                            }
                        },
                        {
                            loader: "sass-loader",
                            options: {
                                sourceMap: true,
                                includePaths: config.sass.includePaths
                            }
                        }
                    ]
                },
                {
                    test: /\.scss$/,
                    exclude: /\.style\.scss$/,
                    use: [
                        "style-loader",
                        "css-loader?importLoaders=1",
                        {
                            loader: "sass-loader",
                            options: {
                                sourceMap: true,
                                includePaths: config.sass.includePaths
                            }
                        }
                    ]
                },
                {
                    test: /\.js$/,
                    loader: "source-map-loader",
                    exclude: [
                        /ionic-angular/,
                        /ionic-native/
                    ]
                },
                { test: /\.json$/, loader: "json-loader" },
                { test: /\.html/, loader: "raw-loader", exclude: [indexPath] },
                { test: /\.css$/, loader: "raw-loader" },
                {
                    test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
                    loader: "url-loader?limit=10000&mimetype=application/font-woff"
{'fraction_non_alphanumeric': 0.11807399539741548, 'fraction_numerical': 0.002124269782262347, 'mean_word_length': 0.7262450351359608, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3502318', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1228, 'n_words': 216}