Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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

69

version

1.0.0-alpha.4

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability