alloy-loader

0.2.11 • Public • Published

alloy-loader

Webpack loader for Alloy components.

⚠️ Note: This loader is meant to be used exclusively in projects powered by appcd-plugin-webpack and does not consider external usages.

Instead of using this loader directly you probably want to install @titanium-sdk/webpack-plugin-alloy, which will automatically configure this loader and everything else required to enable Webpack in your Alloy project.

Installation

npm i alloy-loader

Options

  • compiler

    • Type: AlloyCompiler

    Alloy compiler used to compile controller/view/style files of alloy components.

Development

Make sure to prune to production dependencies when you link this package, for example to test it in @titanium-sdk/webpack-plugin-alloy. The plugin contained in this loader will create instances of ContextElementDependency and adds them to the Webpack compilation. It is important that these are required from the same Webpack module that actually runs the compilation, or else you'll see cryptic errors about callbacks that were called twice.

/alloy-loader/

    Package Sidebar

    Install

    npm i alloy-loader

    Weekly Downloads

    44

    Version

    0.2.11

    License

    Apache-2.0

    Unpacked Size

    35.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • cb1kenobi
    • awam
    • tisdk