Remove DIST_DIR constant
This commit is contained in:
@@ -41,13 +41,13 @@ class JsonManifest {
|
||||
}
|
||||
|
||||
function asset_path($filename) {
|
||||
$dist_path = get_template_directory_uri() . DIST_DIR;
|
||||
$dist_path = get_template_directory_uri() . '/dist/';
|
||||
$directory = dirname($filename) . '/';
|
||||
$file = basename($filename);
|
||||
static $manifest;
|
||||
|
||||
if (empty($manifest)) {
|
||||
$manifest_path = get_template_directory() . DIST_DIR . 'assets.json';
|
||||
$manifest_path = get_template_directory() . '/dist/' . 'assets.json';
|
||||
$manifest = new JsonManifest($manifest_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,14 +13,6 @@ add_theme_support('soil-relative-urls'); // Enable relative URLs from Soil
|
||||
add_theme_support('soil-nice-search'); // Enable nice search from Soil
|
||||
add_theme_support('soil-jquery-cdn'); // Enable to load jQuery from the Google CDN
|
||||
|
||||
/**
|
||||
* Configuration values
|
||||
*/
|
||||
if (!defined('DIST_DIR')) {
|
||||
// Path to the build directory for front-end assets
|
||||
define('DIST_DIR', '/dist/');
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme setup
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user