<commit_before>const { mix } = require('laravel-mix');

/**
 * Compile CSS
 */
mix.sass('resources/assets/sass/admin.sass', 'public/css');
mix.sass('resources/assets/sass/public.sass', 'public/css');

/**
 * Compile JS
 */
mix.js('resources/assets/js/admin.js', 'public/js');
mix.js('resources/assets/js/public.js', 'public/js');

/**
 * Copy font-awesome files
 */
mix.copy('node_modules/font-awesome/fonts', 'public/fonts');

/**
 * Copy CKEditor main files
 */
mix.copy('node_modules/ckeditor/ckeditor.js', 'public/components/ckeditor/ckeditor.js');
mix.copy('node_modules/ckeditor/contents.css', 'public/components/ckeditor/contents.css');

/**
 * Copy CKEditor lang files
 */
mix.copy('node_modules/ckeditor/lang/fr.js', 'public/components/ckeditor/lang/fr.js');
mix.copy('node_modules/ckeditor/lang/es.js', 'public/components/ckeditor/lang/es.js');
mix.copy('node_modules/ckeditor/lang/nl.js', 'public/components/ckeditor/lang/nl.js');
mix.copy('node_modules/ckeditor/lang/en.js', 'public/components/ckeditor/lang/en.js');

/**
 * Copy CKEditor plugins files
 */
var plugins = [
    'clipboard',
    'div',
    'image',
    'image2',
    'justify',
    'lineutils',
    'link',
    'magicline',
    'panelbutton',
    'pastefromword',
    'scayt',
    'showblocks',
    'specialchar',
    'table',
    'widget',
    'widgetselection',
    'wsc',
];
plugins.forEach(function (plugin) {
    mix.copy('node_modules/ckeditor/plugins/' + plugin, 'public/components/ckeditor/plugins/' + plugin, false);
});

/**
 * Copy CKEditor skins files
 */
mix.copy('node_modules/ckeditor/skins', 'public/components/ckeditor/skins', false);

/**
 * Versioning process
 */
if (mix.config.inProduction) {
    mix.minify();
    mix.version();
}<commit_msg>webpack config<commit_after>const { mix } = require('laravel-mix');

/**
 * Compile CSS
 */
mix.sass('resources/assets/sass/admin.sass', 'public/css');
mix.sass('resources/assets/sass/public.sass', 'public/css');

/**
 * Compile JS
 */
mix.js('resources/assets/js/admin.js', 'public/js');
mix.js('resources/assets/js/public.js', 'public/js');

/**
 * Copy font-awesome files
 */
mix.copy('node_modules/font-awesome/fonts', 'public/fonts');

/**
 * Copy CKEditor main files
 */
mix.copy('node_modules/ckeditor/ckeditor.js', 'public/components/ckeditor/ckeditor.js');
mix.copy('node_modules/ckeditor/contents.css', 'public/components/ckeditor/contents.css');

/**
 * Copy CKEditor lang files
 */
mix.copy('node_modules/ckeditor/lang/fr.js', 'public/components/ckeditor/lang/fr.js');
mix.copy('node_modules/ckeditor/lang/es.js', 'public/components/ckeditor/lang/es.js');
mix.copy('node_modules/ckeditor/lang/nl.js', 'public/components/ckeditor/lang/nl.js');
mix.copy('node_modules/ckeditor/lang/en.js', 'public/components/ckeditor/lang/en.js');

/**
 * Copy CKEditor plugins files
 */
var plugins = [
    'clipboard',
    'div',
    'image',
    'image2',
    'justify',
    'lineutils',
    'link',
    'magicline',
    'panelbutton',
    'pastefromword',
    'scayt',
    'showblocks',
    'specialchar',
    'table',
    'widget',
    'widgetselection',
    'wsc',
];
plugins.forEach(function (plugin) {
    mix.copy('node_modules/ckeditor/plugins/' + plugin, 'public/components/ckeditor/plugins/' + plugin, false);
});

/**
 * Copy CKEditor skins files
 */
mix.copy('node_modules/ckeditor/skins', 'public/components/ckeditor/skins', false);

/**
 * Versioning process
 */
if (mix.config.inProduction) {
    mix.version();
}
{'fraction_non_alphanumeric': 0.19797979797979798, 'fraction_numerical': 0.0005772005772005772, 'mean_word_length': 4.067251461988304, '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': '3461396', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1209, 'n_words': 166}