Skip to content

LukeSkyw/preprocessor-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preprocessor for Webpack

What it is?

A preprocessor is a tool parsing files and replacing a piece of text by another.

It is extensively used in the C language and in the Unix world in general.

/!\ This is still the early stage of development. preprocessor-loader can only replace __FILE__ and __LINE__ as of this writing.

Ok so, what does it do??

Let's say you have a javascript called index.js like so:

1 'use strict;'
2 console.log('This is a log (__FILE__:__LINE__)');

Once preprocessed, it will produce:

1 'use strict;'
2 console.log('This is a log (index.js:2)');

Usage

{
  test: /\.js$/,
  exclude: /node_modules/
  loader: 'preprocessor',
},

About

A preprocessor for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%