Grunt - concatenated
  • When you run grunt build you will eventually see this:

    Template "/opt/superdesk/client/node_modules/superdesk-core//opt/superdesk/client/node_modules/superdesk-core/tasks/options/ngtemplates.js" not found.

    The fix is:

    change: 
    index: {
            cwd: '<%= coreDir %>',
            dest: './index.html',
            src: __filename, // hack to make ngtemplate work
            options: {
                bootstrap: () => {
                    const features = getConfig().features || {};
                    const buildIndex = require('../../index.html.js');

                    return buildIndex(features);
                },
            },
        },


    to:

    index: {
            cwd: '<%= coreDir %>',
            dest: './index.html',
            src: src, // __filename, // hack to make ngtemplate work
            options: {
                bootstrap: () => {
                    const features = getConfig().features || {};
                    const buildIndex = require('../../index.html.js');

                    return buildIndex(features);
                },
            },
        },

    and:
    (on line 74):
    src: src, // __filename, // hack to make ngtemplate work
    Post edited by Trond Husø at 2020-06-15 19:24:24
  • 1 Comment sorted by
  • The file to edit is this one:

    node_modules/superdesk-core/tasks/options/ngtemplates.js