Implementation for automatically reading optional files
It automatically reads riotrc, riotrc.js, riot.config.js file and applies it.
This commit is contained in:
parent
572411a459
commit
d12330afd6
@ -9,7 +9,7 @@ class RiotAsset extends Asset {
|
||||
}
|
||||
|
||||
async generate() {
|
||||
const riotOpts = {};
|
||||
const riotOpts = (await this.getConfig(['.riotrc', '.riotrc.js', 'riot.config.js'])) || {};
|
||||
|
||||
let code = compile(this.contents, riotOpts, this.name);
|
||||
code = `${ preamble }${ code }`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user