File "gruntfile-20250116174829.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/gruntfile-20250116174829.js
File size: 982 bytes
MIME-type: text/plain
Charset: utf-8

module.exports = function(grunt) {
    grunt.loadNpmTasks('grunt-wp-i18n');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    grunt.initConfig({
        makepot: {
            target: {
                options: {
                    domainPath: '/languages',
                    mainFile: 'klarna-payments-for-woocommerce',
                    potFilename: 'klarna-payments-for-woocommerce.pot',
                    processPot(pot, options) {
                        // add header options
                        return pot;
                    },
                    type: 'wp-plugin',
                },
            },
        },
        // minify css
        cssmin: {
            target: {
                files: [{
                    expand: true,
                    cwd: './assets/css',
                    src: ['*.css', '!*.min.css'],
                    dest: './assets/css',
                    ext: '.min.css',
                }],
            },
        }
    });
};