@duude92/lazyinject-webpack-plugin
v0.0.3
Published
Webpack plugin designed to bundle application which uses [LazyInject DI](https://github.com/Duude92/lazyinject) container.
Readme
lazyinject-webpack-plugin
Webpack plugin designed to bundle application which uses LazyInject DI container.
Installation
npm install @duude92/lazyinject-webpack-plugin --save-devQuick start
- Setup
lazyinject.config.jswith catalogs, which has dependencies. Example:
// lazyinject.config.js
module.exports = {
catalogs: ['src', 'src/implementations'],
};- Setup chosen webpack config.
- Setup webpack plugin within your webpack configuration:
plugins: [new LazyInjectWebpackPlugin()]
Example
01-webpack-samplecontain example of application, which uses LazyInject as DI container, and bundled using webpack- battleship-backend - example of bundling in 'real' application
License
This project is open source and available under the MIT License.
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
