Skip to content

javaxiu/macros-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/)(.*)"
    },
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published