Skip to content

gaoyuan123/lib-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm node

lib Loader

Instructs webpack to emit the required object as lib and to return its public URL

Install

npm install --save-dev lib-loader

By default the libname of the resulting lib is the MD5 hash of the lib's contents with the original extension of the required resource.

import myLibUrl from 'lib-loader?myLib!./lib.js'

html

<script src="${myLibUrl}"></script>
<script>
  myLib.doSomeThing();
</script>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published