New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

macros-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macros-loader

macros-loader

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Preprocessor for Webpack

fork from git+https://github.com/jdmichaud/preprocessor-loader.git

why

'cause author stop maintaining this project, and my issue was left to open for a while

use

// webpack.config.js

{
  module: {
    loaders: [
      { test: /\.js$/,
        loader: 'pprocessor?config=pprocessor-loader.json',
        exclude: [/bower_components/, /node_modules/],
      },
    ],
  }
}

// pprocessor-loader.json

"macros": [
    {
      "declaration" : "LOG_INFO(message)",
      "definition" : "console.log(message + ' (__FILE__:__LINE__)');",
      "reg": "(?=src/)(.*)"
    },
]

Keywords

macros

FAQs

Package last updated on 18 Apr 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