Frontend development workflow

The Frontend Development Workflow type determines if Less compilation takes place on the client- or server side during development. Less is an extension of CSS that has additional features and conventions, and that produces streamlined code. Client-side Less compilation is recommended for theme development. Server-side compilation is the default mode. The development workflow options are not available for stores in production mode.
See Client-side LESS compilation vs. server-side in the Commerce developer documentation.

NOTE
The frontend development workflow configuration is available in Developer mode only.

Advanced configuration - frontend development workflow

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Advanced and choose Developer.

  3. Expand Expansion selector the Front-end Development Workflow section.

  4. Set Workflow Type to one of the following:

    • Client side less compilation - Compilation takes place in the browser using the native less.js library.
    • Server side less compilation - Compilation takes place on the server using the Less PHP library. This is the default mode for production.
  5. When complete, click Save Config.

Static file signatures

Adding a digital signature to the URL of static files makes it possible for browsers to detect when a newer version of the file is available. Static files that can be tracked with digital signatures include JavaScript, CSS, images, and fonts. The signature is appended to the path directly after the base URL. If a file’s signature differs from what is stored in the browser’s cache, then the newer version of the file is used.

See Static content signing in the Commerce developer documentation.

NOTE
The Static File Settings configuration is available only when working in developer mode.

Advanced configuration - static files settings

For a detailed list of the configuration settings, see Static File Settings in the Configuration Reference.

To enable signed static files:

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Advanced and choose Developer.

  3. Expand Expansion selector the Static Files Settings section.

  4. Set Sign Static Files to Yes.

  5. When complete, click Save Config.