Merge pull request #4 from arika0093/work/resouce-file-load

Implementation for automatically reading optional files
This commit is contained in:
Gianluca Guarini 2019-03-23 11:54:10 +01:00 committed by GitHub
commit ecd584d347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }`;