I’m extremely new to the sage wordpress template, so new that I can’t get the css to compile!
So after running npm install and bower install, I try running gulp but get the error:
‘layouts/tinymce.less’ wasn’t found. Tried - /wordpress/wp-content/themes/sage-8.4.2/assets/styles/layouts/tinymce.less,layouts/tinymce.less in file /wordpress/wp-content/themes/sage-8.4.2/assets/styles/main.scss line no. 19.
It looks like the fonts and scripts compile because they appear in a dist folder, just not the styles… I have spent a few hours trying various things, but just can’t seem to get any ideas what the issue could be…
You don’t have to downgrade node, changing the the order makes it work perfectly (calling less after scss) .pipe(function() { return gulpif('*.scss', sass({ outputStyle: 'nested', // libsass doesn't support expanded yet precision: 10, includePaths: ['.'], errLogToConsole: !enabled.failStyleTask })); }) .pipe(function() { return gulpif('*.less', less()); })