Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6157

Split Cookies block JS/CSS code

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Should have Should have
    • None

      Following https://jira.greenpeace.org/browse/PLANET-4535 (based on https://jira.greenpeace.org/browse/PLANET-4534),
      split/reorganize Cookies block scripts in assets/src/blocks/{Blockname}  and assets/src/styles/blocks/{Blockname} to this structure :

      • assets/src/blocks/{Blockname}/{Blockname}Script.js instantiates a block on the frontend side
      • assets/src/blocks/{Blockname}/{Blockname}EditorScript.js instantiates a block editor, in the gutenberg editor
      • assets/src/styles/blocks/{Blockname}/{Blockname}Style.scss is used to style the block on frontend
      • assets/src/styles/blocks/{Blockname}/{Blockname}EditorStyle.scss is used for editor specific styles

      A generic method you can follow is available in this PR https://github.com/greenpeace/planet4-plugin-gutenberg-blocks/pull/591#user-content-genericmethod

       

            fhernand Florent Hernandez
            fhernand Florent Hernandez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: