New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fest-webpack-loader

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fest-webpack-loader

Webpack loader for fest

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-53.85%
Maintainers
1
Weekly downloads
 
Created
Source

npm package Coverage Status node Build Status Dependencies Status

Fest templates loader for Webpack

This Webpack loader compiles Fest templates.

For Webpack 4.x use loader versions 2.x

Loader is trying to build dependencies tree by walking through <fest:include/>, <fest:insert/> and <fest:script/> tags of template.

When loader emits warning, that means that XML parser failed to parse a file and get dependencies from it. You probably would like to fix file syntax, to have complete experience with webpack rebuild on change.

:exclamation: Using builtin beautifier could break ES syntax in scripts, that is inlined via <fest:script/>. Consider switching off beautify option.

Install

npm install --save-dev fest-webpack-loader

Usage

All referenced templates compiles to ES modules.

import template from './template.xml';

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.xml$/,
        use: [
          {
            loader: 'fest-webpack-loader'
          }
        ]
      }
    ]
  }
}

Options

NameTypeDefaultDescription
beautify{Boolean}falseBeautify compiled template. Built-in fest beautifier breaks ES syntax.
trackDependencies{Boolean}true for development mode otherwise falseEnable template dependencies tracking
module{String}esCompiled template module type. es or cjs.

Keywords

FAQs

Package last updated on 30 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc