Skip to content

Write a loader to enhance the function of console, including the location of the call point.

Notifications You must be signed in to change notification settings

826625219/demo-consoleLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The project is a demo of console loader.

The consoleLoader is in src/loader/consoleLoader.js

In config/webpack.config.js, we use it after babel loader to enhance the ability of console

Result

source code: image

result: image

why we should use fs module to record the message to code.txt?

the console message will be overwrited once the webpack finishs compiling. Just show the compiling details: image

About

Write a loader to enhance the function of console, including the location of the call point.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published