mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-08 21:11:25 +03:00
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
* sort preview cameras in history by ui order * sort cameras by UI order in various components for consistent display * add no recordings faq * fix link * recording cache faq * add link * improve anchor naming in object detector docs rather than #configuration-1, #configuration-2, etc * use yaml instead of json for object detector docs * fix anchor
24 lines
648 B
JavaScript
24 lines
648 B
JavaScript
const path = require("node:path");
|
|
|
|
// Enables importing YAML data files from docs/data as plain JS objects.
|
|
// Scoped to the data directory so it never intercepts other .yaml files
|
|
// (e.g. the OpenAPI spec under static/).
|
|
module.exports = function (context, options) {
|
|
return {
|
|
name: "yaml-data-loader",
|
|
configureWebpack(config, isServer, utils) {
|
|
return {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ya?ml$/,
|
|
include: path.resolve(__dirname, "..", "data"),
|
|
use: path.resolve(__dirname, "js-yaml-loader.js"),
|
|
},
|
|
],
|
|
},
|
|
};
|
|
},
|
|
};
|
|
};
|