Skip to content

afeiship/webpack-entries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-entries

Get webpack entries from glob path.(For spa/multple pages configurations)

usage:

//Only one module for SPA project:
var webpackEntries = entries('src/modules/my-module/index.js');

//Multi modules use glob expression:
var webpackEntries = entries('src/modules/**/index.js');

//Multi modules use array:
var webpackEntries = entries(['src/modules/my-module1/index.js','src/modules/my-module2/index.js']);

windows path join:

//the result of path.join:
var path="c:\\eset\\adfo";

//but:display: c:\eset\adfo
console.log(path);

//resolve:
console.log(path.replace(/\\/g,'/'));

//if you use this string for test:
console.log("c:\eset\adfo");

//This will be display:`c:esetadfo`

About

Webpack config that can easy get multi entries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published