一覧へ戻る
flybywiresim/rollup-plugin-msfs(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin for bundling Microsoft Flight Simulator HTML instruments
- star 数
- 1
- watcher 数
- 2
- fork 数
- 3
- issue 数
- 0
- 最終更新
- 2021/07/07
主要言語: JavaScript
Rollup plugin for bundling Microsoft Flight Simulator HTML instruments
Rollup plugin for bundling Microsoft Flight Simulator HTML instruments
{
name: string, // Name of instrument (must be globally unique to all addons)
elementName: string, // Name of custom element
outputDir: string, // Output directory for instrument files
config: { index: string, isInteractive: boolean }, // Instrument configuration
instrumentDir?: string, // Name of instrument ouptut directory (sub-directory of `outputDir`). Defaults to `name`
jsBundle?: string, // Name of JS rollup bundle. Defaults to bundle.js
cssBundle?: string // Name of CSS rollup bundle. Defaults to bundle.css
imports?: string[], // List of HTML/JS imports to add to the template HTML file. Defaults to none
}
const template = require('@flybywiresim/rollup-plugin-msfs'); // other plugins ... template({ name: 'MFD', elementName: 'a380x-mfd-element', config, imports: ['/JS/dataStorage.js'], outputDir: `${__dirname}/../../A380X/html_ui/Pages/VCockpit/Instruments/A380X`, }), }