Socket
Socket
Sign inDemoInstall

pug-loader

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-loader - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

5

CHANGELOG.md
# Change log
## 2.3.0 / 2016-08-22
- Use explicit pug-walk dependency; fixes installation on npm v2
- Allow setting Pug options from webpack.config.js's `pugLoader` property
## 2.2.1 / 2016-08-06

@@ -4,0 +9,0 @@

5

index.js

@@ -5,2 +5,3 @@ var path = require("path");

var nodeResolve = require("resolve").sync;
var walk = require('pug-walk');

@@ -14,11 +15,9 @@ module.exports = function(source) {

modulePaths.runtime = nodeResolve("pug-runtime", {basedir: dirname(modulePaths.pug)});
modulePaths.walk = nodeResolve("pug-walk", {basedir: dirname(modulePaths.pug)});
var pug = require(modulePaths.pug);
var load = require(modulePaths.load);
var walk = require(modulePaths.walk);
var req = loaderUtils.getRemainingRequest(this).replace(/^!/, "");
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getLoaderConfig(this, "pugLoader");

@@ -25,0 +24,0 @@ var loadModule = this.loadModule;

3

package.json
{
"name": "pug-loader",
"version": "2.2.1",
"version": "2.3.0",
"author": "Tobias Koppers @sokra",

@@ -11,2 +11,3 @@ "description": "Pug loader module for Webpack",

"loader-utils": "~0.2.5",
"pug-walk": "^1.0.0",
"resolve": "^1.1.7"

@@ -13,0 +14,0 @@ },

Sorry, the diff of this file is not supported yet

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