Harness the power of pre-processed CSS and minified JS in your theme or plugin, without any complicated installs or build tools.
Author: | Bytes Co (profile at wordpress.org) |
WordPress version required: | 4.8 |
WordPress version tested: | 5.0 |
Plugin version: | 1.0.0 |
Added to WordPress repository: | 21-10-2018 |
Last updated: | 22-10-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 6 |
Plugin URI: | https://github.com/burlingtonbytes/WP-Compile... |
Total downloads: | 3 296 |
Active installs: | 1 000+ |
Click to start download
|
Screenshots
The admin bar interface of WP Compiler
The admin bar interface of WP Compiler, in dev mode
The settings page
FAQ
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.
ChangeLog