{"library":"pug-html-loader","title":"pug-html-loader","description":"Webpack loader that compiles Pug (formerly Jade) templates into HTML strings. Version 1.1.7 is the latest stable release. It connects Pug's compile function to Webpack's module system, outputting raw HTML that can be further processed by loaders like html-loader or raw-loader. Commonly used in webpack configurations to convert .pug files into plain HTML for bundling. Limited maintenance and lacks TypeScript support.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install pug-html-loader"],"cli":null},"imports":["import html from 'pug-html-loader'","{\n  test: /\\.pug$/,\n  use: ['raw-loader', 'pug-html-loader']\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nmodule.exports = {\n  entry: './src/index.js',\n  module: {\n    rules: [\n      {\n        test: /\\.pug$/,\n        use: [\n          'raw-loader',\n          'pug-html-loader'\n        ],\n        options: {\n          data: {} // optional data to pass to pug render\n        }\n      }\n    ]\n  },\n  output: {\n    filename: 'bundle.js'\n  }\n};","lang":"javascript","description":"Webpack configuration using pug-html-loader to compile .pug files to HTML strings.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}