Skip to content

ipatate/wp-goodmotion-starter

Repository files navigation

WP Starter theme

This theme use :

Requirement for use this theme

wp-config.js

Define environment variable :

define('WP_ENV', 'development'); // or production

development requirement

Use or install node.js on your local machine.
This project use npm and node for compile assets.

For install dependencies :

npm install

npm scripts

For start development :

npm run dev

For build assets:

npm run build

Gutenberg editor

For admin editor, a css file is generated on build.
Use the assets/css/editor.css file for add style.

The command is run on build but you can generate separately:

npm run build:editor

or

npm run watch:editor

assets in CSS

use /assets/image.jpg instead of ./assets/image.jpg

Vite add a base path to asset on build.