Skip to Content

adding a new decorator to smartedit - ngtemplates and concat

I'm trying to add a new decorator to a custom Smartedit extension according to this guide:
but I can't figure out where to put ( I mean in which file/section) these code excerpts:

 ngtemplates: {
             options: {
                 standalone: true, //to declare a module as opposed to binding to an existing one
                 module: 'myModuleTemplates'
             run: {
                 src: ['web/features/**/*Template.html'],
                 dest: 'jsTarget/web/features/templates.js'


 concat: {
             options: {
                 separator: ';'
             dist: {
                 src: ['web/features/features/**/*.js', 'some other pattern'],
                 dest: 'jsTarget/myModule.js'

Can anyone help?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 23, 2018 at 01:27 PM

    My understanding of the Help site you linked is that there is a Gruntfile.js file in your custom SmartEdit extension, and you need to define it there.

    Check this file, as sample: backoffice/node_modules/grunt-angular-templates/Gruntfile.js


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.