This PR contains various improvements and cleanups to the configuration and JavaScript code. Key changes include: - Adding simple comments to `jsconfig.json`. - Improving config: `bud.wpjson.set` replaces `bud.wpjson.settings`. Note that `bud.wpjson.settings` is not deprecated. - `bud.wpjson.settings` now disables `dropCap` by default. - `app.js` and `editor.js` now use `if (import.meta.webpackHot)` instead of optional chaining, since `import.meta.webpackHot` is not a real method and using optional chaining might cause errors.
31 lines
688 B
JSON
31 lines
688 B
JSON
{
|
|
"extends": "@roots/sage/config/jsconfig.json",
|
|
"compilerOptions": {
|
|
"baseUrl": "resources",
|
|
/**
|
|
* Resolve aliases
|
|
*/
|
|
"paths": {
|
|
"@fonts/*": ["fonts/*"],
|
|
"@images/*": ["images/*"],
|
|
"@scripts/*": ["scripts/*"],
|
|
"@styles/*": ["styles/*"]
|
|
},
|
|
/**
|
|
* Type definitions
|
|
*/
|
|
"types": [
|
|
"@roots/bud",
|
|
"@roots/bud-react",
|
|
"@roots/bud-postcss",
|
|
"@roots/bud-preset-recommend",
|
|
"@roots/bud-preset-wordpress",
|
|
"@roots/bud-tailwindcss",
|
|
"@roots/bud-wordpress-theme-json",
|
|
"@roots/sage"
|
|
]
|
|
},
|
|
"include": ["bud.config.js", "resources"],
|
|
"exclude": ["node_modules", "public"]
|
|
}
|