UNPKG

@injectable/webpack-service

Version:
39 lines (27 loc) 929 B
# Webpack Service Service for compiling strings to js using [webpack](https://github.com/webpack/webpack). *This package works with the [Injectable Core](https://github.com/signinit/injectable-core).* ## Functions Registers an id for a compilation. ```typescript public registerCompilationId(): number ``` Sets a compilation to be compiled and hosted ```typescript public setCompilation( injectableName: string, compilationId: number, files: { [filename: string]: string }, nodeModules: Array<string>, configuration: Configuration, baseRoute: string, encodings: Array<Encoding>, onRequest?: OnRequest ): void ``` Deletes an compilation and all its compiled files. ```typescript public deleteCompilation(injectableName: string, compilationId: number): void ``` ## License See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).