@marlonapp/marlon-lab-plugin-loader
v1.1.1
Published
This is the magic webpack loader built for marlon-lab-plugins.
Downloads
4
Readme
Marlon Lab Plugin Loader
This is the magic webpack loader built for marlon-lab-plugins.
Apply this loader to plugin.ts
if it isn't just install.
How to implement
Npm: npm i @marlonapp/marlon-lab-plugin-loader
Vue Cli
{
chainWebpack: (config) => {
config.module
.rule('marlon-plugin')
.test(/plugin\.ts$/)
.use('marlon-loader')
.loader('@marlonapp/marlon-lab-plugin-loader')
}
}
If you want to emit a file for see how loader change plugin.ts you can pass a options object:
{
chainWebpack: (config) => {
config.module
.rule('marlon-plugin')
.test(/plugin\.ts$/)
.use('marlon-loader')
// OPTIONS:
// emit: If true the loader will emit a __plugin__.ts file.
.options({
emit: true
})
.loader('@marlonapp/marlon-lab-plugin-loader')
}
}