{"size": 936, "ext": "js", "max_stars_repo_path": "webpack.mix.js", "max_stars_repo_name": "ashokgelal/cleaver-setup", "max_stars_repo_stars_event_min_datetime": "2020-04-30T02:31:11.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-30T02:31:11.000Z", "max_issues_repo_path": "webpack.mix.js", "max_issues_repo_name": "ashokgelal/cleaver-setup", "max_issues_repo_issues_event_min_datetime": "2021-03-10T13:09:58.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-19T00:04:55.000Z", "max_forks_repo_path": "webpack.mix.js", "max_forks_repo_name": "ashokgelal/cleaver-setup", "max_forks_repo_forks_event_min_datetime": "2020-07-09T23:41:15.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-09T23:41:15.000Z"}
{"max_stars_count": 1, "max_issues_count": 4, "max_forks_count": 1, "avg_line_length": 34.6666666667, "max_line_length": 89, "alphanum_fraction": 0.5651709402}
let mix = require('laravel-mix')
const cssImport = require('postcss-import')
const cssNesting = require('postcss-nesting')
const tailwindcss = require('tailwindcss')
const purgecss = require('@fullhuman/postcss-purgecss')
const resourcesPath = 'src/main/resources'
const publicPath = `${resourcesPath}/web`
const templatesPath = `${resourcesPath}/templates`

mix
    .setPublicPath(publicPath)
    .less(`${resourcesPath}/css/app.less`, 'css')
    .options({
        postCss: [
            cssImport(),
            cssNesting(),
            tailwindcss('./tailwind.config.js'),
            ...mix.inProduction() ? [
                purgecss({
                    content: [`${templatesPath}/**/*.peb`],
                    defaultExtractor: content => content.match(/[\w-/:.]+(?<!:)/g) || [],
                    whitelistPatternsChildren: [/nprogress/],
                }),
            ] : [],
        ],
    }).disableNotifications()
