Merge pull request #4 from arika0093/work/resouce-file-load
Implementation for automatically reading optional files
This commit is contained in:
commit
ecd584d347
@ -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