This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Example", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "node", | |
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
{ | |
"imports": { | |
"#components/*": "./src/components/*", | |
"#functions/*": "./src/functions/*" | |
} | |
} |
import type {PluginOption} from "vite"; | |
import {format} from "prettier"; | |
/** | |
* Format HTML pages using Prettier. | |
*/ | |
export function prettierPlugin(): PluginOption { | |
return { | |
name: "prettier", | |
transformIndexHtml: { |
/* eslint-env node */ | |
import {fileURLToPath} from "node:url"; | |
/** | |
* @returns {import("vite").PluginOption} | |
*/ | |
function buildPlugin(pages) { | |
return { | |
name: "change-html-output", | |
enforce: "post", |
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- features/** | |
- dependabot/** | |
pull_request: | |
branches: |
Merely setting build.rollupOptions.input
forces a script to be generated even if the page has none (whereas the default behavior doesn't generate the empty js file):
vite.config.js
points to the same default location:
export default {
build: {
rollupOptions: {
input: "index.html"
}
}
<?php | |
function get_combinations($arrays) { | |
$result = array(array()); | |
foreach ($arrays as $property => $property_values) { | |
$tmp = array(); | |
foreach ($result as $result_item) { | |
foreach ($property_values as $property_value) { | |
$tmp[] = array_merge($result_item, array($property => $property_value)); | |
} |
-- Reads the 88x88 thumbnail from Material Editor for an arbitrary material. | |
-- Note that it renders faster when the material editor is closed, | |
-- so you could call `MatEditor.Close()` first. | |
-- | |
-- Parameters: | |
-- mat: a material instance (StandardMaterial, Universal_Material, etc..) | |
-- | |
-- Returns: | |
-- a Bitmap or `undefined` | |
-- |