Plugin info

Total downloads: 4,211
Active installs: 1,000
Total reviews: 6
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 10/22/2018 (2626 days ago)
Added to WordPress: 10/21/2018 (7 years old)
Minimum WordPress version: 4.8
Tested up to WordPress version: 5.0.24
Minimum PHP version: 5.6

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2626 days ago • 6 reviews

22/100

Is WP Compiler abandoned?

Possibly abandoned (last update 2626 days ago).

Compatibility

Requires WordPress: 4.8
Tested up to: 5.0.24
Requires PHP: 5.6

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

Harness the power of pre-processed CSS and minified JS in your theme or plugin, without any complicated installs or build tools. Simply tell WP Compiler where to find your source files and where to put the compiled results, then throw your install into Dev Mode. WP Compiler watches your source folders for you, and recompiles your CSS and JS on any file change. WP Compiler supports both SCSS and LESS precompilers for CSS, to suit anyone’s preference.

When you’re ready to launch a new site, just turn off Dev Mode, and your styles and javascript will be compiled & minimized and comments & source maps will be removed. With Dev mode disabled, Compiler will stop watching source directories, so there is no effect on site performance, but you can still apply a quick change at any time, by clicking the compile button in the admin toolbar.

WP Compiler relies on scssphp, lessphp, and minify.
Specific issues with the underlying compilation libraries should be submitted to their respective developers.

Installation

  1. Download the plugin file to your system and unzip it
  2. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation?s wp-content/plugins/ directory
  3. Activate the plugin from the Plugins menu within the WordPress admin
  4. Go to Settings -> Compiler Settings
  5. Set the paths to your source CSS and JS files and the targets they compile to
  6. Turn on Dev Mode and get coding!

Frequently Asked Questions

How can I combine multiple JavaScript files?

The easiest way to compile your JS is to store it all in a single directory. If you set your compilation source to be the directory path, all JS files in the directory will be combined and minified.

How can I make sure JavaScript files are minified in a specific order?

WP Compiler supports .manifest files for JavaScript. This is a custom file format in which each line consists of a relative file path to a JS file, a relative path to a directory containing JS, or a relative path to another .manifest file. for clarity, lines beginning with a hash symbol (#) are treated as comments.

Here is an example of a manifest file:

# <js.manifest>
# This is a sample JavaScript manifest file for WP Compiler
# all paths are relative to the current manifest file
# First we are going to load specific files that have to come first
test-script.js
test-script2.js
# Now let’s load a sub-manifest
partials/js.manifest
# Finally, let’s load a folder whose contents
# don’t need to be in a specific order
external-scripts/

What about AutoPrefixing, JS Transpiling, NPM includes, Require.js, Custom Task Runners or ?

Unfortunately, there is a limit to how many of the immense number of node.js build processes available can be replicated in native PHP. Please let us know about which features you’d most like to see tackled next.

Review feed

No reviews available

Screenshots

  1. The admin bar interface of WP Compiler

    The admin bar interface of WP Compiler

  2. The admin bar interface of WP Compiler, in dev mode

    The admin bar interface of WP Compiler, in dev mode

  3. The settings page

    The settings page

Changelog

1.0

  • Initial Release