electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 97 forks source link

.compilerc.json only supported if manually invoking `createCompilerHostFromProjectRoot` #147

Open bengotow opened 8 years ago

bengotow commented 8 years ago

The docs suggest you can use a .compilerc.json file as a configuration source, but the standard use case (calling init per the docs) doesn't search for a config file at this path. (https://github.com/bengotow/electron-compile/blame/master/src/config-parser.js#L300)

Only the async createCompilerHostFromProjectRoot API checks .compilerc.json: https://github.com/electron/electron-compile/blob/master/src/config-parser.js#L240