Make WordPress Core

Changeset 26107 for trunk/package.json


Ignore:
Timestamp:
11/12/2013 09:18:45 PM (11 years ago)
Author:
nacin
Message:

Use CSSJanus via a Grunt task to generate right-to-left CSS.

RTL files are now created on build for core CSS files. These files replace the LTR file completely, rather than being in addition to the existing LTR file.

Benefits:

  • For the user: less CSS is served in RTL, less HTTP requests on the frontend, and less work for the browser.
  • For the core developer: Let the tools do the work.

Notes for core development:

  • The file generation task is grunt rtl.
  • grunt watch now handles generating RTL files in /build when a CSS file in /src is saved.
  • /src is now locked to LTR. RTL testing must occur via /build. When attempting to run an RTL text direction with /src, an admin notice will display.

Expect RTL bugs. Please report them.

props yoavf.
see #24977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r25960 r26107  
    2020    "grunt-contrib-concat": "~0.3.0",
    2121    "grunt-contrib-jshint": "~0.7.0",
     22    "grunt-cssjanus": "~0.1.0",
    2223    "matchdep": "~0.1.2"
    2324  }
Note: See TracChangeset for help on using the changeset viewer.