If you dived into ‘How to compile WordPress 5.0 twentynineteen sass files you might mis the sourcemaps for the style.css. The sourcemaps are not generated by any of the commands without a small adjustment.
"build:style": "node-sass style.scss style.css --source-map true --output-style expanded && postcss -r style.css",
"build:style-editor": "node-sass style-editor.scss style-editor.css --output-style expanded && postcss -r style-editor.css",
"build:style-editor-customizer": "node-sass style-editor-customizer.scss style-editor-customizer.css --output-style expanded && postcss -r style-editor-customizer.css",
"build:rtl": "rtlcss style.css style-rtl.css",
"build:print": "node-sass print.scss print.css --output-style expanded && postcss -r print.css",
"build": "run-p \"build:*\"",
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial"
In the line with build:style you need to add: style.css –source-map, just as done above.
WordPress 5.0 is out! and it does not only come with Gutenberg but also with the new theme twentynineteen theme for WordPress. The theme is brilliant in its simplicity but that does not bring much elegance. So what if you want to change the styling? enhance or expand it? How would you start?. There are […]
Assuming you know something about plugin development, I want to share a piece using jQuery autocomplete the WordPress way. Ajax calls have been around and jQuery autocomplete has been, but you do not see them as much together in examples the WordPress way.
There are a number of possibilities for adding the child theme styles after the parent style sheet so you can overrule parent styles from the child theme. this one is easy, copy the code to your functions.php and it will work.
wp test is een xml import met een variatie van gebruikers pages en posts om een thema te testen wptest.io github Wp test is useful to populate pages, posts and users with dummy data. Sometimes when working on a project you need content to see shape. wordpress plugin fakerpress fakerpress is a plugin that can […]
Sometimes you want to use one archive template for different situations. In wordpress select a template by using the ‘template_include‘ filter. You have to use the function ‘locate_template()‘ to set the template. This is if you want to stray from the normal way wordpress enables you to select a template. WordPress lets you create page […]