Narcoleptic Pasta Manufacturer

    @marlonapp/marlon-lab-plugin-loader

    1.1.1 • Public • Published

    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')
        }
      }

    Keywords

    none

    Install

    npm i @marlonapp/marlon-lab-plugin-loader

    DownloadsWeekly Downloads

    32

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    6.18 kB

    Total Files

    14

    Last publish

    Collaborators

    • danieletulonejs