Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-930

StaticClientSideElement imports debug file and language file

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0RC2
    • None
    • None
    • None

      Some imported js have two versions : debug and minimized.

      When our debug configuration is set we want to import the debug one.
      It would be nice to be able to do something like

      <file>..../js/myfile.js</file>
      <file debug="all">..../js/myotherfile.js</file>
      <file debug="no">..../js/tinymce.js</file>
      <file debug="yes">..../js/tinymce-debug.js</file>

      debug attributes could be :

      • all (default) to be imported always
      • no to be imported only when the general configuration is no debug mode
      • yes to be imported only when the general configuration is in debug mode

      It seems simple to me.

      The only darkside is not to be able to say : for this file this is the debug version and the normal version
      So we could do this

      <file>..../js/myfile.js</file>
      <file>..../js/myotherfile.js</file>
      <file>
      <normal>..../js/tinymce.js</file>
      <debug>..../js/tinymce-debug.js</file>
      </file>

            glefebvre Grégory Lefebvre (Inactive)
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: