mlegenhausen / grunt-ng-constant

Plugin for dynamic generation of angular constant and value definition modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: Required config property "ngconstant.dist" missing

gonzalo-lorieto opened this issue · comments

I'm getting this error running grunt ngconstant:dist. Tried everything but no luck. BTW I'm using load-grunt-config.

Running "ngconstant:dist" (ngconstant) task
Verifying property ngconstant.dist exists in config...ERROR
>> Unable to process task.
Warning: Required config property "ngconstant.dist" missing. Used --force, continuing.

Done, but with warnings.

dist.js file👇

ngconstant: {
    options: {
        name: 'app.constants',
        dest: 'app/app.constants.js',
        wrap: '\'use strict\';\n\n{%= __ngModule %}',
        constants: {
            APP: {
                version: '1.1.9'
            },
        }
    },
    dist: {
        constants: {
            apiUrl: grunt.file.readJSON('config.production.json')
        }
    }
},