metal-soy-loader

    1.0.0-alpha.4 • Public • Published

    metal-soy-loader

    Webpack loader that compiles soy templates using metal-tools-soy

    Usage

    Check https://webpack.js.org/concepts/loaders/ for documentation on implementing loaders.

    // Webpack config
    module.exports = {
      module: {
        rules: [
          {
            test: /\.soy$/,
            loader: 'metal-soy-loader'
          }
        ]
      }
    }

    metal-soy-loader produces JavaScript code, exporting all found templates, so you can add more loaders like babel-loader to process the output.

    Keywords

    none

    Install

    npm i metal-soy-loader

    DownloadsWeekly Downloads

    5

    Version

    1.0.0-alpha.4

    License

    MIT

    Last publish

    Collaborators

    • rframpton